Skip to content

Commit

Permalink
[feat] save PROJECT_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
mrs1669 committed May 14, 2024
1 parent 078af19 commit 8ddb405
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ jobs:
- name: Upload IPA file to App Store Connect
run: |
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then app_name="`ls -A | grep -i \\.xcworkspace\$`"; else app_name="`ls -A | grep -i \\.xcodeproj\$`"; fi
xcrun altool --upload-app -f app.ipa/$app_name.ipa \
if [[ "$app_name" == *.xcodeproj ]]; then
project_name="${app_name%.xcodeproj}"
elif [[ "$app_name" == *.xcworkspace ]]; then
project_name="${app_name%.xcworkspace}"
fi
echo "PROJECT_NAME=$project_name" >> $GITHUB_ENV
xcrun altool --upload-app -f app.ipa/$project_name.ipa \
-u ${{ secrets.APPLE_ID }} \
-p ${{ secrets.APP_SPECIFIC_PASSWORD }} \
--type ios
Expand All @@ -67,4 +72,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: $app_name.ipa
path: app.ipa/$app_name.ipa
path: app.ipa/${{ env.PROJECT_NAME }}.ipa

0 comments on commit 8ddb405

Please sign in to comment.