From c328893b5cd6ef077fe468a41f6c7cfe3ef52a67 Mon Sep 17 00:00:00 2001 From: Philipp Hoenisch Date: Thu, 25 Apr 2024 17:40:50 +1000 Subject: [PATCH 1/2] chore: bump release action --- .github/workflows/android-fastlane.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android-fastlane.yml b/.github/workflows/android-fastlane.yml index 3cc3fb7b5..a5f257a35 100644 --- a/.github/workflows/android-fastlane.yml +++ b/.github/workflows/android-fastlane.yml @@ -189,7 +189,7 @@ jobs: MEME_ENDPOINT: ${{ inputs.meme_endpoint }} - name: Attach android apks to release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: ${{ inputs.tag != 'main' }} with: tag_name: ${{ inputs.tag }} From a4a975047fb4f8f1edcc94b8b54d95a092c1caef Mon Sep 17 00:00:00 2001 From: Philipp Hoenisch Date: Thu, 25 Apr 2024 17:54:06 +1000 Subject: [PATCH 2/2] feat: create a CI release and publish apks If android APK have been built for `main` we create a new release with the name and tag of format `vdate '+%Y-%m-%d %H:%M:%S'`. We can't (or shouldn't) use the same tag for this such as `nightly` because tags are meant to be immutable. --- .github/workflows/android-fastlane.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/android-fastlane.yml b/.github/workflows/android-fastlane.yml index a5f257a35..f665f11ff 100644 --- a/.github/workflows/android-fastlane.yml +++ b/.github/workflows/android-fastlane.yml @@ -197,6 +197,27 @@ jobs: mobile/build/app/outputs/flutter-apk/*.apk mobile/build/app/outputs/flutter-apk/*.apk.sha1 + - name: Compute the release tag for continues ci build + if: ${{ inputs.tag == 'main' }} + run: | + echo "release_tag=v`date '+%Y-%m-%d %H:%M:%S'`" >> $GITHUB_ENV + + - name: Attach android apks to release + uses: softprops/action-gh-release@v2 + if: ${{ inputs.tag == 'main' }} + with: + prerelease: true + name: ${{ env.release_tag }} + tag_name: ${{ env.release_tag }} + target_commitish: main + make_latest: false + repository: get10101/10101-test-apks + token: ${{ secrets.GITHUB_TOKEN }} + files: | + mobile/build/app/outputs/flutter-apk/*.apk + mobile/build/app/outputs/flutter-apk/*.apk.sha1 + + - name: Release to Google Play Store env: # secrets