Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
letwebdev committed Nov 25, 2023
2 parents 5caf150 + b8cf460 commit 3215f85
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@ jobs:

- name: Rename bulit apk
if: startsWith(github.ref, 'refs/tags/v')
run: mv "./android/app/build/outputs/apk/debug/app-debug.apk" "./android/app/build/outputs/apk/debug/hackernews-${{github.ref_name}}.apk"
run: mv "./release/android/app/build/outputs/apk/debug/app-debug.apk" "./release/android/app/build/outputs/apk/debug/hackernews-${{github.ref_name}}.apk"

- name: Upload apk when pushing branch "apk"
if: startsWith(github.ref, 'refs/heads/apk')
uses: actions/upload-artifact@v3
with:
name: app-debug.apk
path: './android/app/build/outputs/apk/debug/*.apk'
path: './release/android/app/build/outputs/apk/debug/*.apk'
- name: Upload apk when pushing version tag
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-artifact@v3
with:
name: hackernews-${{github.ref_name}}.apk
path: './android/app/build/outputs/apk/debug/*.apk'
path: './release/android/app/build/outputs/apk/debug/*.apk'

- name: Upload output-metadata.json
uses: actions/upload-artifact@v3
with:
name: output-metadata.json
path: './android/app/build/outputs/apk/debug/output-metadata.json'
path: './release/android/app/build/outputs/apk/debug/output-metadata.json'

- name: Get last version tag
id: git-version-tag
Expand All @@ -77,8 +77,8 @@ jobs:
body: "**Full Changelog**: https://github.com/${GITHUB_REPOSITORY}/compare/${{ steps.git-version-tag.outputs.LAST_VERSION_TAG }}...${{github.ref_name}}"
# Can't use quotes here
files: |
./android/app/build/outputs/apk/debug/hackernews-${{github.ref_name}}.apk
./android/app/build/outputs/apk/debug/output-metadata.json
./release/android/app/build/outputs/apk/debug/hackernews-${{github.ref_name}}.apk
./release/android/app/build/outputs/apk/debug/output-metadata.json
# Name of the release. defaults to tag name
name: apk ${{github.ref_name}}

0 comments on commit 3215f85

Please sign in to comment.