diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3dd239e..7ef32ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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"