CI: auto rename

This commit is contained in:
ncpt 2024-07-30 00:22:17 +07:00 committed by GitHub
parent 56ab9a5002
commit a5c1c4ccc0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,6 +78,9 @@ jobs:
# echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
# echo Last build tool version is: $BUILD_TOOL_VERSION
- uses: little-core-labs/get-git-tag@v3.0.1
id: tag_name
- uses: Wandalen/wretry.action@master
name: Sign app APK
id: sign_app
@ -90,6 +93,9 @@ jobs:
keyAlias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
appName: Migu
appVersion: ${{ steps.tagName.outputs.tag }}
appPrefix: android
- uses: jungwinter/split@v2
id: signed_files
@ -102,7 +108,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git fetch --tags
gh release upload --clobber $(gh release list --limit 1 --json tagName --jq '.[0].tagName') ../${{ steps.signed_files.outputs._0 }}
gh release upload --clobber $(gh release list --limit 1 --json tagName --jq '.[0].tagName') ../${{ steps.signed_files.outputs._1 }}
gh release upload --clobber $(gh release list --limit 1 --json tagName --jq '.[0].tagName') ../${{ steps.signed_files.outputs._2 }}
gh release upload --clobber $(gh release list --limit 1 --json tagName --jq '.[0].tagName') ../${{ steps.signed_files.outputs._3 }}
gh release upload --clobber ${{ steps.tagName.outputs.tag }} ../${{ steps.signed_files.outputs._0 }}
gh release upload --clobber ${{ steps.tagName.outputs.tag }} ../${{ steps.signed_files.outputs._1 }}
gh release upload --clobber ${{ steps.tagName.outputs.tag }} ../${{ steps.signed_files.outputs._2 }}
gh release upload --clobber ${{ steps.tagName.outputs.tag }} ../${{ steps.signed_files.outputs._3 }}