Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SanmerDev committed Aug 4, 2023
1 parent 3f9d97d commit f2cc730
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,22 @@ jobs:
- name: Build with Gradle
run: ./gradlew assembleRelease

- name: Get release name
if: success() && github.ref == 'refs/heads/main'
id: release-name
run: |
name=`ls app/build/outputs/apk/release/*-arm64-v8a-release.apk | awk -F '(/|-arm64-v8a-release.apk)' '{print $6}'` && echo "name=${name}-release"
- name: Upload built apk
if: success() && github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: apk
path: ${{ github.workspace }}/app/build/outputs/apk/release/*.apk
name: ${{ steps.release-name.outputs.name }}
path: app/build/outputs/apk/release/*.apk

- name: Upload mappings
if: success() && github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: mappings
path: ${{ github.workspace }}/app/build/outputs/mapping/release
path: app/build/outputs/mapping/release

0 comments on commit f2cc730

Please sign in to comment.