Skip to content

Commit

Permalink
Upload release assets with curl
Browse files Browse the repository at this point in the history
  • Loading branch information
nain-F49FF806 authored Jul 11, 2024
1 parent 6cb87cd commit 71f7d93
Showing 1 changed file with 30 additions and 18 deletions.
48 changes: 30 additions & 18 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,36 @@ jobs:
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}

- uses: Shopify/[email protected]
if: ${{ (github.event_name == 'release') }}
with:
name: sharepaste.oo-source-original-arm64-v8a-release.apk
path: android/app/build/outputs/apk/source-original/release/sharepaste.oo-source-original-arm64-v8a-release.apk
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Shopify/[email protected]
if: ${{ (github.event_name == 'release') }}
with:
name: sharepaste.oo-source-original-armeabi-v7a-release.apk
path: android/app/build/outputs/apk/source-original/release/sharepaste.oo-source-original-armeabi-v7a-release.apk
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Shopify/[email protected]
if: ${{ (github.event_name == 'release') }}
with:
name: sharepaste.oo-source-original-universal-release.apk
path: android/app/build/outputs/apk/source-original/release/sharepaste.oo-source-original-universal-release.apk
repo-token: ${{ secrets.GITHUB_TOKEN }}
- if: ${{ (github.event_name == 'release') }}
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-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=sharepaste.oo-source-original-arm64-v8a-release.apk" \
--data-binary "@android/app/build/outputs/apk/source-original/release/sharepaste.oo-source-original-arm64-v8a-release.apk"
- if: ${{ (github.event_name == 'release') }}
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-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=sharepaste.oo-source-original-armeabi-v7a-release.apk" \
--data-binary "@android/app/build/outputs/apk/source-original/release/sharepaste.oo-source-original-armeabi-v7a-release.apk"
- if: ${{ (github.event_name == 'release') }}
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-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=sharepaste.oo-source-original-universal-release.apk" \
--data-binary "@android/app/build/outputs/apk/source-original/release/sharepaste.oo-source-original-universal-release.apk"
- name: Upload Build Artifacts (Apks)
if: ${{ !(github.event_name == 'release') }}
Expand Down

0 comments on commit 71f7d93

Please sign in to comment.