Skip to content

Commit f5f5fc8

Browse files
committed
chore: split generate and upload app installer package commands
1 parent 38a154d commit f5f5fc8

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: install Rust stable
2727
uses: dtolnay/rust-toolchain@stable
28-
28+
2929
- name: Install Rust targets
3030
run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
3131

@@ -61,8 +61,8 @@ jobs:
6161
keychain initialize --password $KEYCHAIN_PASSWORD --path $KEYCHAIN_PATH --timeout 21600
6262
6363
# import certificate to keychain
64-
keychain add-certificates
65-
security set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
64+
keychain add-certificates -A
65+
security set-key-partition-list -S apple-tool:,apple:, -s -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
6666
security find-identity -v
6767
6868
- name: install frontend dependencies
@@ -76,21 +76,24 @@ jobs:
7676
env:
7777
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
7878
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
79-
APPLE_SIGNING_IDENTITY: "Apple Distribution: Free Code Camp, Inc. (L33K9LWVP9)"
79+
APPLE_SIGNING_IDENTITY: 'Apple Distribution: Free Code Camp, Inc. (L33K9LWVP9)'
8080

8181
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
8282
VITE_FREECODECAMP_API: ${{ vars.VITE_FREECODECAMP_API }}
8383
VITE_MOCK_DATA: ${{ vars.VITE_MOCK_DATA }}
8484
with:
85-
args: "--target universal-apple-darwin --verbose"
85+
args: '--target universal-apple-darwin --verbose'
8686
includeDebug: false
8787
includeRelease: true
8888
includeUpdaterJson: true
8989

90-
- name: generate and upload installer package
90+
- name: generate installer package
91+
run: |
92+
xcrun productbuild --sign "3rd Party Mac Developer Installer: Free Code Camp, Inc. (L33K9LWVP9)" --component "./src-tauri/target/universal-apple-darwin/release/bundle/macos/Exam Environment.app" /Applications "Exam Environment.pkg"
93+
94+
- name: upload installer package
9195
env:
9296
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
9397
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
9498
run: |
95-
xcrun productbuild --sign "3rd Party Mac Developer Installer: Free Code Camp, Inc. (L33K9LWVP9)" --component "./src-tauri/target/universal-apple-darwin/release/bundle/macos/Exam Environment.app" /Applications "Exam Environment.pkg"
9699
xcrun altool --upload-app --type macos --file "Exam Environment.pkg" --apiKey $APPLE_API_KEY_ID --apiIssuer $APPLE_API_ISSUER

0 commit comments

Comments
 (0)