Skip to content

Commit 327f433

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

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 5 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

@@ -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)