Update .forgejo/workflows/release.yaml
This commit is contained in:
parent
d25b1ed23c
commit
dcc17b70bc
1 changed files with 15 additions and 5 deletions
|
@ -57,11 +57,21 @@ jobs:
|
|||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
||||
|
||||
- name: Upload APK
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: app-release.apk
|
||||
path: app/build/outputs/apk/release/app-release.apk
|
||||
- name: Upload APK to release
|
||||
run: |
|
||||
RELEASE_ID=$(curl -s -H "Authorization: token $FORGEJO_TOKEN" \
|
||||
"$FORGEJO_API/repos/${OWNER}/${REPO}/releases/tags/$TAG_NAME" | jq -r .id)
|
||||
|
||||
curl -sSL -X POST "$FORGEJO_API/repos/${OWNER}/${REPO}/releases/${RELEASE_ID}/assets?name=app-release.apk" \
|
||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||
-H "Content-Type: application/vnd.android.package-archive" \
|
||||
--data-binary "@app/build/outputs/apk/release/app-release.apk"
|
||||
env:
|
||||
FORGEJO_API: https://weforge.xyz/api/v1
|
||||
OWNER: partisan
|
||||
REPO: Pulse
|
||||
TAG_NAME: ${{ github.ref_name }}
|
||||
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||
|
||||
- name: Cleanup secrets
|
||||
run: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue