Skip to content

Commit

Permalink
Revert changes: ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pixkk authored Sep 26, 2024
1 parent 833570d commit fd44756
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,30 +66,8 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: app-release.apk
name: app-release
path: android/app/build/outputs/apk/release/app-release.apk

- name: Download APK using GitHub API
run: |
TOKEN="${{ secrets.TOKEN_SECRET }}"
OWNER="pixkk"
REPO="VueTube"
WORKFLOW_RUN_ID="${{ github.run_id }}"
ARTIFACTS=$(curl -H "Authorization: token $TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/$OWNER/$REPO/actions/runs/$WORKFLOW_RUN_ID/artifacts)
ARTIFACT_ID=$(echo $ARTIFACTS | jq '.artifacts[] | select(.name == "app-release") | .id')
curl -L -H "Authorization: token $TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/$OWNER/$REPO/actions/artifacts/$ARTIFACT_ID/zip \
--output artifact.zip
unzip artifact.zip -d extracted
mv extracted/app-release.apk ./app-release.apk
ios:
name: Build iOS platform
runs-on: macos-latest
Expand Down Expand Up @@ -135,5 +113,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: VueTube.ipa
name: VueTube
path: VueTube.ipa

0 comments on commit fd44756

Please sign in to comment.