Skip to content

Commit

Permalink
CI: Upload release apk with curl
Browse files Browse the repository at this point in the history
  • Loading branch information
nain-F49FF806 authored Oct 3, 2024
1 parent 2898d56 commit de996eb
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ jobs:
with:
name: mappings
path: "app/build/outputs/mapping/release"
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "app/build/outputs/apk/release/app-release.apk"
draft: true
allowUpdates: true
omitDraftDuringUpdate: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload apks to release assets
if: ${{ (github.event_name == 'release') }}
run: |
curl --fail -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.RELEASE_UPLOAD_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-H "Content-Type: application/octet-stream" \
"https://uploads.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets?name=aer-app-release.apk" \
--data-binary "@app/build/outputs/apk/release/app-release.apk"

0 comments on commit de996eb

Please sign in to comment.