From 142fa736b05b5bc76d7addf384a9191219c854cf Mon Sep 17 00:00:00 2001 From: AhsanSarwar45 Date: Wed, 13 Dec 2023 22:01:19 +0500 Subject: [PATCH] Update workflow --- .github/workflows/android-release.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index f0f28d39..8539e3e6 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -41,25 +41,19 @@ jobs: # - name: Decode android/key.properties # run: echo "${{ secrets.KEY_PROPERTIES_PROD }}" | base64 --decode > android/key.properties - - uses: olegtarasov/get-tag@v2 # that generate $GIT_TAG_NAME env - id: tagName - with: - tagRegex: 'internal-v([0-9]+.[0-9]+.[0-9]+\+[0-9]+)' # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined. - tagRegexGroup: 1 # Optional. Default is 1. - - - name: Replace YAML version with tag version - run: | - sed -i 's/99.99.99+99/'$GIT_TAG_NAME'/g' pubspec.yaml| - echo "Tag used version:"$GIT_TAG_NAME + # - name: Replace YAML version with tag version + # run: | + # sed -i 's/99.99.99+99/'$GIT_TAG_NAME'/g' pubspec.yaml| + # echo "Tag used version:"$GIT_TAG_NAME - name: Pub Get Packages - run: flutter pub get + run: "flutter pub get" - name: Build APPBUNDLE - run: flutter build appbundle --build-name=$GIT_TAG_NAME + run: "flutter build appbundle --build-name=${{ github.ref_name }}" - name: Build APK - run: flutter build apk --split-per-abi --build-name=$GIT_TAG_NAME + run: "flutter build apk --split-per-abi --build-name=${{ github.ref_name }}" - name: Create Github Release uses: ncipollo/release-action@v1