Skip to content

Commit

Permalink
chore(.github/workflows): fix deploy app error
Browse files Browse the repository at this point in the history
Fix the GitHub workflow issue where a deprecated version of
actions/upload-artifact is causing a deployment error.
  • Loading branch information
olgahaha committed Sep 20, 2024
1 parent 9e17e37 commit 108d55a
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ jobs:
./gradlew assembleDebug
- name: Upload debug APK and metadata to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: app-debug.apk
path: ./android/app/build/outputs/apk/debug/app-debug.apk

- name: Upload debug metadata to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: output-metadata.json
path: ./android/app/build/outputs/apk/debug/output-metadata.json
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}

- name: Upload release AAB to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: app-release.aab
path: ./android/app/build/outputs/bundle/release/app-release.aab
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:
xcodebuild -exportArchive -archivePath build/App.xcarchive -exportPath build -exportOptionsPlist ios/App/ExportOptions.plist -allowProvisioningUpdates
- name: Upload IPA
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: App.ipa
path: build/App.ipa
Expand All @@ -244,7 +244,7 @@ jobs:
echo ${{ steps.current-time.outputs.formattedTime }} > build/ios-build-number.txt
- name: Upload iOS build number
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ios-build-number.txt
path: build/ios-build-number.txt
Expand Down Expand Up @@ -276,12 +276,6 @@ jobs:
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}

- name: Upload iOS build number as artifact
uses: actions/upload-artifact@v2
with:
name: ios-build-number.txt
path: build/ios-build-number.txt

get-ios-build-number:
runs-on: ubuntu-latest
needs: deploy-app-store
Expand Down

0 comments on commit 108d55a

Please sign in to comment.