mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 00:07:05 +05:30
fix(release): rework Play Store release workflow
This commit is contained in:
parent
b30425d97d
commit
cd7d82d378
2 changed files with 16 additions and 3 deletions
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
@ -1,15 +1,25 @@
|
|||
name: Release to Google Play
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish-google-play-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Get latest release
|
||||
id: latest-release
|
||||
shell: bash
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
tag_name="$(gh api /repos/msfjarvis/compose-lobsters/releases --jq '.[0].tag_name')"
|
||||
echo "checkout_ref=${tag_name}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3.1.0
|
||||
with:
|
||||
ref: ${{ steps.latest-release.outputs.checkout_ref }}
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v3.6.0
|
||||
|
@ -35,6 +45,7 @@ jobs:
|
|||
packageName: dev.msfjarvis.claw.android
|
||||
releaseFiles: android/bundle/*.aab
|
||||
track: production
|
||||
status: completed
|
||||
whatsNewDirectory: distribution/whatsnew
|
||||
mappingFile: android/bundle/mapping.txt
|
||||
|
||||
|
|
|
@ -21,3 +21,5 @@ git commit -am 'feat(release): start next development iteration'
|
|||
git push origin main "v${VERSION}"
|
||||
|
||||
gh release create "v${VERSION}" -F distribution/whatsnew/whatsnew-en-GB --title "v${VERSION}" ./android/apk/*.apk ./android/bundle/*.aab
|
||||
|
||||
gh workflow run release.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue