Skip to content

Commit

Permalink
Update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
italankin committed Jan 17, 2024
1 parent 8ef1071 commit 4790d2e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
runs-on: ubuntu-latest

env:
OUTPUT_PATH: 'launcher/build/outputs/apk/release'
MAPPINGS_OUTPUT_PATH: 'launcher/build/outputs/mapping/release'
APK_OUTPUT_PATH: 'launcher/build/outputs/apk/release'
AAB_OUTPUT_PATH: 'launcher/build/outputs/bundle/release'

steps:
- uses: actions/[email protected]
Expand All @@ -37,25 +37,25 @@ jobs:
run: chmod +x gradlew

- name: assemble
run: ./gradlew --no-daemon assembleRelease
run: ./gradlew --no-daemon assembleRelease bundleRelease

- name: current ref
run: echo "CURRENT_REF=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV"

- name: rename apk
run: mv "$OUTPUT_PATH/launcher-release.apk" "$OUTPUT_PATH/lnch-${{ env.CURRENT_REF }}.apk"
run: mv "$APK_OUTPUT_PATH/launcher-release.apk" "$APK_OUTPUT_PATH/lnch-${{ env.CURRENT_REF }}.apk"

- name: release
uses: ncipollo/[email protected]
with:
artifacts: "${{ env.OUTPUT_PATH }}/*.apk"
artifacts: "${{ env.APK_OUTPUT_PATH }}/*.apk"
prerelease: true
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: save mapping.txt
uses: actions/upload-artifact@v3.1.3
- name: upload bundle
uses: italankin/google-play-aab-uploader@1.3
with:
name: mapping.txt
path: ${{ env.MAPPINGS_OUTPUT_PATH }}/mapping.txt

package-name: 'com.italankin.lnch'
aab-path: "${{ env.AAB_OUTPUT_PATH }}/launcher-release.aab"
key-json: ${{ secrets.SERVICE_KEY_JSON }}

0 comments on commit 4790d2e

Please sign in to comment.