From 0bf096abb5257df425b9c022baef36f2b5a00766 Mon Sep 17 00:00:00 2001 From: Imran <30463115+ImranR98@users.noreply.github.com> Date: Sun, 14 Jan 2024 01:26:17 -0500 Subject: [PATCH 1/4] Temporary GitHub action change --- .github/workflows/release.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 690fc81..971d065 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,8 +6,6 @@ on: beta: type: boolean description: Is beta? - environment: - type: environment jobs: build: @@ -61,18 +59,18 @@ jobs: if [ $BETA == true ]; then TAG="$TAG"-beta; fi echo "tag=$TAG" >> $GITHUB_OUTPUT - - name: Create Tag - uses: mathieudutour/github-tag-action@v6.1 - with: - github_token: ${{ secrets.GH_ACCESS_TOKEN }} - custom_tag: "${{ steps.extract_version.outputs.tag }}" - tag_prefix: "" + # - name: Create Tag + # uses: mathieudutour/github-tag-action@v6.1 + # with: + # github_token: ${{ secrets.GH_ACCESS_TOKEN }} + # custom_tag: "${{ steps.extract_version.outputs.tag }}" + # tag_prefix: "" - - name: Create Release And Upload APKs - uses: ncipollo/release-action@v1 - with: - token: ${{ secrets.GH_ACCESS_TOKEN }} - tag: "${{ steps.extract_version.outputs.tag }}" - prerelease: "${{ steps.extract_version.outputs.beta }}" + # - name: Create Release And Upload APKs + # uses: ncipollo/release-action@v1 + # with: + # token: ${{ secrets.GH_ACCESS_TOKEN }} + # tag: "${{ steps.extract_version.outputs.tag }}" + # prerelease: "${{ steps.extract_version.outputs.beta }}" artifacts: ./build/app/outputs/flutter-apk/*-release*.apk* generateReleaseNotes: true From 900d3e734ed11076b5bf7b9485d9293b350d04dc Mon Sep 17 00:00:00 2001 From: Imran <30463115+ImranR98@users.noreply.github.com> Date: Sun, 14 Jan 2024 01:27:13 -0500 Subject: [PATCH 2/4] Update release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 971d065..e7cab0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,5 +72,5 @@ jobs: # token: ${{ secrets.GH_ACCESS_TOKEN }} # tag: "${{ steps.extract_version.outputs.tag }}" # prerelease: "${{ steps.extract_version.outputs.beta }}" - artifacts: ./build/app/outputs/flutter-apk/*-release*.apk* - generateReleaseNotes: true + # artifacts: ./build/app/outputs/flutter-apk/*-release*.apk* + # generateReleaseNotes: true From 440720afb65ccaaadef2f274349c93f2237b56bd Mon Sep 17 00:00:00 2001 From: Imran <30463115+ImranR98@users.noreply.github.com> Date: Sun, 14 Jan 2024 01:31:42 -0500 Subject: [PATCH 3/4] Update release.yml --- .github/workflows/release.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7cab0a..db9dcc1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,17 @@ jobs: gpg_private_key: ${{ secrets.PGP_KEY_BASE64 }} passphrase: ${{ secrets.PGP_PASSPHRASE }} + - name: Extract Version + id: extract_version + run: | + VERSION=$(grep -oP "^version: [^\+]+" pubspec.yaml | tail -c +10) + echo "version=$VERSION" >> $GITHUB_OUTPUT + if [ ${{ inputs.beta }} == true ]; then BETA=true; else BETA=false; fi + echo "beta=$BETA" >> $GITHUB_OUTPUT + TAG="v$VERSION" + if [ $BETA == true ]; then TAG="$TAG"-beta; fi + echo "tag=$TAG" >> $GITHUB_OUTPUT + - name: Build APKs run: | sed -i 's/signingConfig signingConfigs.release//g' android/app/build.gradle @@ -47,17 +58,6 @@ jobs: done rm apksign.keystore PGP_KEY_FINGERPRINT="${{ steps.import_pgp_key.outputs.fingerprint }}" - - - name: Extract Version - id: extract_version - run: | - VERSION=$(grep -oP "^version: [^\+]+" pubspec.yaml | tail -c +10) - echo "version=$VERSION" >> $GITHUB_OUTPUT - if [ ${{ inputs.beta }} == true ]; then BETA=true; else BETA=false; fi - echo "beta=$BETA" >> $GITHUB_OUTPUT - TAG="v$VERSION" - if [ $BETA == true ]; then TAG="$TAG"-beta; fi - echo "tag=$TAG" >> $GITHUB_OUTPUT # - name: Create Tag # uses: mathieudutour/github-tag-action@v6.1 From be1a793a37a78f881fdebf4c8d8071d3ce330c42 Mon Sep 17 00:00:00 2001 From: Imran <30463115+ImranR98@users.noreply.github.com> Date: Sun, 14 Jan 2024 01:34:32 -0500 Subject: [PATCH 4/4] Update release.yml --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db9dcc1..3a482bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,7 @@ jobs: TAG="v$VERSION" if [ $BETA == true ]; then TAG="$TAG"-beta; fi echo "tag=$TAG" >> $GITHUB_OUTPUT + echo "$VERSION" "$TAG" "$BETA" - name: Build APKs run: |