Skip to content

Commit

Permalink
change order of actions
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobar79 committed Aug 29, 2024
1 parent 950f13d commit f65d177
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/macstadium-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
run: |
sed -i'' -e "s/IS_TESTING=true/IS_TESTING=false/" .env && rm -f .env-e
xcodebuild -workspace ios/Rainbow.xcworkspace -scheme Rainbow -configuration Release -sdk iphonesimulator -derivedDataPath ios/build
APP_DIR=./ios/build/Rainbow.xcarchive/Products/Applications/Rainbow.app
cd $APP_DIR && zip -r ../../../../../../App.zip .
# TOPHAT iOS DEVICE
- name: Build the app in release mode for iOS devices
env:
Expand All @@ -81,13 +84,11 @@ jobs:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
COMMIT_HASH: ${{ github.sha }}
run: |
IPA_PATH=./ios/build/Rainbow.ipa
aws s3 cp "${IPA_PATH}" "s3://${AWS_BUCKET}/${BRANCH_NAME}/${COMMIT_HASH}.ipa"
APP_FILE=$(find . -name "App.zip" | head -n 1)
aws s3 cp "${APP_FILE}" "s3://${AWS_BUCKET}/${BRANCH_NAME}/${COMMIT_HASH}.app.zip"
IPA_FILE=./ios/build/Rainbow.ipa
aws s3 cp "${IPA_FILE}" "s3://${AWS_BUCKET}/${BRANCH_NAME}/${COMMIT_HASH}.ipa"
APP_DIR=$(find . -name "*.app" | head -n 1)
cd $APP_DIR && zip -r ../App.zip . && cd ..
aws s3 cp "App.zip" "s3://${AWS_BUCKET}/${BRANCH_NAME}/${COMMIT_HASH}.app.zip"
- name: Post comment to PR
if: github.event_name == 'pull_request'
env:
Expand Down

0 comments on commit f65d177

Please sign in to comment.