Skip to content

Commit

Permalink
fix: set PROVISIONING_PROFILE
Browse files Browse the repository at this point in the history
  • Loading branch information
willswire committed Sep 24, 2024
1 parent e16fab8 commit 7bfe40c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
# create variables
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
PP_PATH=$RUNNER_TEMP/build_pp.provisionprofile
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
# import certificate and provisioning profile from secrets
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
run: sudo xcode-select -s "${XCODE_PATH}"

- name: Archive
run: xcodebuild archive -scheme "$SCHEME" -destination "$DESTINATION" -archivePath "$ARCHIVE" | xcpretty && exit ${PIPESTATUS[0]}
run: xcodebuild archive -scheme "$SCHEME" -destination "$DESTINATION" -archivePath "$ARCHIVE" PROVISIONING_PROFILE="~/Library/MobileDevice/Provisioning\ Profiles/build_pp.provisionprofile" | xcpretty && exit ${PIPESTATUS[0]}

- name: Create release
id: create_release
Expand All @@ -76,6 +76,9 @@ jobs:
draft: false
prerelease: false

- name: Mark binary as executable
run: chmod +x ./cosmic.xcarchive/Products/usr/local/bin/cosmic

- name: Upload binary
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 7bfe40c

Please sign in to comment.