mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-23 11:29:09 -05:00
Fix Artifacts & Scripts (#402)
Fixes an issue where ipa and apk artifacts weren't attached to the releases on GitHub
This commit is contained in:
@@ -206,12 +206,39 @@ jobs:
|
||||
|
||||
finalize-release:
|
||||
needs: [publish-android, publish-iOS, generate-release-notes]
|
||||
if: always()
|
||||
runs-on: macos-15
|
||||
steps:
|
||||
- name: 🛒 Checkout Repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.SIGNING_REPO_PAT }}
|
||||
token: ${{ secrets.SIGNING_REPO_PAT }}
|
||||
|
||||
- name: ❌ Fail if selected job failed
|
||||
run: |
|
||||
SELECTED="${{ github.event.inputs['build-platform'] }}"
|
||||
IOS_RESULT="${{ needs.publish-ios.result }}"
|
||||
ANDROID_RESULT="${{ needs.publish-android.result }}"
|
||||
|
||||
echo "Selected: $SELECTED"
|
||||
echo "iOS Result: $IOS_RESULT"
|
||||
echo "Android Result: $ANDROID_RESULT"
|
||||
|
||||
if [[ "$SELECTED" == "iOS" && "$IOS_RESULT" != "success" ]]; then
|
||||
echo "❌ iOS build failed!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$SELECTED" == "Android" && "$ANDROID_RESULT" != "success" ]]; then
|
||||
echo "❌ Android build failed!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$SELECTED" == "Both" && ( "$IOS_RESULT" != "success" || "$ANDROID_RESULT" != "success" ) ]]; then
|
||||
echo "❌ One or more platform builds failed!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: 💎 Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
@@ -238,13 +265,13 @@ jobs:
|
||||
mkdir final-artifacts
|
||||
|
||||
# Rename IPA
|
||||
if [ -f artifacts/ios-artifacts/Jellify.ipa ]; then
|
||||
cp artifacts/ios-artifacts/Jellify.ipa "final-artifacts/Jellify-${VERSION}.ipa"
|
||||
if [ -f artifacts/Jellify.ipa ]; then
|
||||
cp artifacts/Jellify.ipa "final-artifacts/Jellify-${VERSION}.ipa"
|
||||
fi
|
||||
|
||||
# Rename APKs
|
||||
if [ -d artifacts/android-artifacts ]; then
|
||||
for apk in artifacts/android-artifacts/*.apk; do
|
||||
if [ -d artifacts/ ]; then
|
||||
for apk in artifacts/*.apk; do
|
||||
filename=$(basename "$apk")
|
||||
cp "$apk" "final-artifacts/Jellify-${VERSION}-${filename}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user