Skip to content

Commit

Permalink
chore: rename apk
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 committed Feb 16, 2023
1 parent 1ac4783 commit 54437e8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/app-prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:

env:
KEY_PROPERTIES: ${{ secrets.KEY_PROPERTIES }}
# IMAGE_TAG: "" #we get tag using the action down below

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -57,6 +58,11 @@ jobs:
ls -la
ls -la build/app/outputs/apk/release
- run: |
echo "IMAGE_TAG=${{steps.tag.outputs.tag}}" >> $GITHUB_ENV
echo $GITHUB_ENV
- name: upload apk
uses: actions/upload-artifact@v3
with:
Expand All @@ -69,8 +75,12 @@ jobs:
name: all.zip
path: build/app/outputs/apk/release/

- name: Release
- name: rename apk
if: startsWith(github.ref, 'refs/tags/')
run: mv build/app/outputs/apk/release/app-release.apk build/app/outputs/apk/release/EOEFANS-${{ env.IMAGE_TAG }}.apk

- name: Publish release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/app/outputs/apk/release/app-release.apk
files: build/app/outputs/apk/release/EOEFANS-${{ env.IMAGE_TAG }}.apk

0 comments on commit 54437e8

Please sign in to comment.