mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-06-20 18:08:04 +00:00
Replace Google Play upload with GitHub Release creation
This commit is contained in:
parent
601213c5dd
commit
a0b91d01a8
26
.github/workflows/android-build-and-publish.yml
vendored
26
.github/workflows/android-build-and-publish.yml
vendored
@ -58,17 +58,29 @@ jobs:
|
||||
aab=$(find build -type f -name "*.aab" | head -n 1)
|
||||
echo "aab=$aab" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload to Google Play
|
||||
if: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON != '' }}
|
||||
uses: r0adkll/upload-google-play@v1
|
||||
- name: Create GitHub Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
with:
|
||||
serviceAccountJson: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
|
||||
packageName: oss.krtirtho.spotube
|
||||
releaseFiles: ${{ steps.find_aab.outputs.aab }}
|
||||
track: ${{ github.event.inputs.track || 'internal' }}
|
||||
tag_name: ${{ github.ref_name }}
|
||||
release_name: Release ${{ github.ref_name }}
|
||||
body: 'Automated AAB build uploaded by CI'
|
||||
draft: false
|
||||
prerelease: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload AAB to Release
|
||||
uses: actions/upload-release-asset@v1
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ${{ steps.find_aab.outputs.aab }}
|
||||
asset_name: app-bundle-${{ github.ref_name }}.aab
|
||||
asset_content_type: application/octet-stream
|
||||
|
||||
- name: Upload artifact (AAB)
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: app-bundle
|
||||
|
||||
path: ${{ steps.find_aab.outputs.aab }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user