Skip to content

Commit 2f051d7

Browse files
committed
chore: update mac app store deployment action
1 parent 8a5a667 commit 2f051d7

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
deploy-macos-app:
88
runs-on: macos-latest
99
env:
10-
VITE_MOCK_DATA: false
11-
VITE_FREECODECAMP_API: https://test-api.freecodecamp.dev
10+
VITE_MOCK_DATA: ${{ vars.VITE_MOCK_DATA }}
11+
VITE_FREECODECAMP_API: ${{ vars.VITE_FREECODECAMP_API }}
1212
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
1313
steps:
1414
- uses: actions/checkout@v4
@@ -34,7 +34,7 @@ jobs:
3434
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
3535
APPLE_DISTRIBUTION_CERT: ${{ secrets.APPLE_DISTRIBUTION_CERT }}
3636
MAC_INSTALLER_DISTRIBUTION_CERT: ${{ secrets.MAC_INSTALLER_DISTRIBUTION_CERT }}
37-
PROVISIONING_PROFILE: ${{ secrets.PROVISIONING_PROFILE }}
37+
MAC_APP_STORE_PROVISIONING_PROFILE: ${{ secrets.MAC_APP_STORE_PROVISIONING_PROFILE }}
3838
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
3939
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
4040
run: |
@@ -51,15 +51,9 @@ jobs:
5151
# import certificate and provisioning profile from secrets
5252
echo -n "$APPLE_DISTRIBUTION_CERT" | base64 --decode -o $DISTRIBUTION_CERT_PATH
5353
echo -n "$MAC_INSTALLER_DISTRIBUTION_CERT" | base64 --decode -o $MAC_INSTALLER_DISTRIBUTION_CERT_PATH
54-
echo -n "$PROVISIONING_PROFILE" | base64 --decode -o $PP_PATH
54+
echo -n "$MAC_APP_STORE_PROVISIONING_PROFILE" | base64 --decode -o $PP_PATH
5555
echo -n "$APPLE_API_KEY" | base64 --decode -o $APPLE_API_KEY_PATH
5656
57-
# List file permissions
58-
ls -l $DISTRIBUTION_CERT_PATH
59-
ls -l $MAC_INSTALLER_DISTRIBUTION_CERT_PATH
60-
ls -l $PP_PATH
61-
ls -l $APPLE_API_KEY_PATH
62-
6357
# create temporary keychain
6458
keychain initialize --password $KEYCHAIN_PASSWORD --path $KEYCHAIN_PATH --timeout 21600
6559
@@ -71,13 +65,24 @@ jobs:
7165
- name: install frontend dependencies
7266
run: pnpm install && pnpm run prisma-generate
7367

68+
# The rust build requires the `.env` file to exist, even if none of the variables are used
69+
- name: prep env
70+
run: cp sample.env .env
71+
7472
- uses: tauri-apps/tauri-action@v0
7573
env:
7674
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
7775
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
76+
APPLE_SIGNING_IDENTITY: "Apple Distribution: Free Code Camp, Inc. (L33K9LWVP9)"
77+
78+
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
79+
VITE_FREECODECAMP_API: ${{ vars.VITE_FREECODECAMP_API }}
80+
VITE_MOCK_DATA: ${{ vars.VITE_MOCK_DATA }}
7881
with:
79-
args: "--target universal-apple-darwin"
80-
# includeUpdaterJson: true
82+
args: "--target universal-apple-darwin --verbose"
83+
includeDebug: false
84+
includeRelease: true
85+
includeUpdaterJson: true
8186

8287
- name: generate and upload installer package
8388
env:

0 commit comments

Comments
 (0)