Skip to content

Commit

Permalink
Update android-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Jan 26, 2024
1 parent b2d2fc1 commit 9fbb6c3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,24 +101,24 @@ jobs:
HASH=${HASH:0:32}
curl -F "[email protected]" http://localhost:8000/api/v1/upload -H "Authorization:$MOBSF_API_KEY"
curl -X POST --url http://localhost:8000/api/v1/scan --data "scan_type=apk&file_name=remote.apk&hash=$HASH" -H "Authorization:$MOBSF_API_KEY"
curl -X POST --url http://localhost:8000/api/v1/download_pdf --data "hash=$HASH" -H "Authorization:$MOBSF_API_KEY" --output remote.pdf
curl -X POST --url http://localhost:8000/api/v1/download_pdf --data "hash=$HASH" -H "Authorization:$MOBSF_API_KEY" --output remote-${{ steps.build_id.outputs.id }}.pdf
ls -al
- name: rename APK and AAB with version and branch for artifact
if: github.ref != 'refs/heads/master'
run: |
mv output/remote.apk output/remote-${{ env.ANDROID_VERSION_NAME }}-${{ env.BRANCHNAME }}.apk
mv output/remote.apk.sha256 output/remote-${{ env.ANDROID_VERSION_NAME }}-${{ env.BRANCHNAME }}.apk.sha256
mv output/remote.aab output/remote-${{ env.ANDROID_VERSION_NAME }}-${{ env.BRANCHNAME }}.aab
mv output/remote.aab.sha256 output/remote-${{ env.ANDROID_VERSION_NAME }}-${{ env.BRANCHNAME }}.aab.sha256
mv output/remote.pdf output/remote-${{ env.ANDROID_VERSION_NAME }}-${{ env.BRANCHNAME }}.pdf
mv output/remote.apk output/remote-${{ steps.build_id.outputs.id }}-${{ env.BRANCHNAME }}.apk
mv output/remote.apk.sha256 output/remote-${{ steps.build_id.outputs.id }}-${{ env.BRANCHNAME }}.apk.sha256
mv output/remote.aab output/remote-${{ steps.build_id.outputs.id }}-${{ env.BRANCHNAME }}.aab
mv output/remote.aab.sha256 output/remote-${{ steps.build_id.outputs.id }}-${{ env.BRANCHNAME }}.aab.sha256
mv output/remote-${{ steps.build_id.outputs.id }}.pdf output/remote-${{ steps.build_id.outputs.id }}-${{ env.BRANCHNAME }}.pdf
ls -alR output
- name: upload APK and AAB as build artifact
if: github.ref != 'refs/heads/master'
uses: actions/upload-artifact@v3
with:
name: remote-${{ env.ANDROID_VERSION_NAME }}-${{ env.BRANCHNAME }}
name: remote-${{ steps.build_id.outputs.id }}-${{ env.BRANCHNAME }}
path: output/*
retention-days: 9

Expand Down

0 comments on commit 9fbb6c3

Please sign in to comment.