Skip to content

Commit

Permalink
delete ipa after upload
Browse files Browse the repository at this point in the history
  • Loading branch information
vodemn committed Mar 17, 2024
1 parent e376391 commit bffa598
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,19 +181,7 @@ jobs:
debugSymbols: merged_native_libs.zip
whatsNewDirectory: whatsnew

# https://docs.github.com/en/actions/learn-github-actions/expressions#failure-with-conditions
- name: Zip app bundle and merged_native_libs
if: ${{ failure() && steps.create-google-play-release-step.conclusion == 'failure' }}
run: zip m3_lightmeter_release.zip app-prod-release.aab merged_native_libs.zip

- name: Upload release zip to artifacts
if: ${{ failure() && steps.create-google-play-release-step.conclusion == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: m3_lightmeter_release
path: m3_lightmeter_release.zip

- name: Delete app bundle & merged native libs artifacts
- name: Delete appbundle artifact
if: ${{ always() }}
uses: geekyeggo/delete-artifact@v2
with:
Expand All @@ -216,6 +204,12 @@ jobs:
- name: Upload app to TestFlight
run: xcrun altool --upload-app -f lightmeter.ipa -t ios -u ${{ secrets.APP_STORE_USERNAME }} -p ${{ secrets.APP_STORE_PASSWORD }}

- name: Delete ipa artifact
if: ${{ always() }}
uses: geekyeggo/delete-artifact@v2
with:
name: m3_lightmeter_ipa

cleanup:
name: Cleanup
if: ${{ always() }}
Expand Down

0 comments on commit bffa598

Please sign in to comment.