Skip to content

Commit

Permalink
feat: create a CI release and publish apks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bonomat committed Apr 26, 2024
1 parent c328893 commit a4a9750
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/android-fastlane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4a9750

Please sign in to comment.