Skip to content

Commit c8dc993

Browse files
committed
feat: updated release builder - signed mac apps, winget manifest
1 parent ac65ab2 commit c8dc993

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
cache: 'pnpm'
27+
cache: "pnpm"
2828
# install dbus-1 dep for xosms
2929
- if: matrix.os == 'ubuntu-latest'
3030
name: update apt and install utils
@@ -75,6 +75,12 @@ jobs:
7575
run: |
7676
pnpm install --frozen-lockfile
7777
78+
- if: matrix.os == 'macos-latest'
79+
name: Write APPLE_API_KEY to AuthKey.p8
80+
run: |
81+
mkdir -p .secrets
82+
echo ${{ secrets.APPLE_API_KEY }} > .secrets/AuthKey.p8
83+
chmod 600 .secrets/AuthKey.p8
7884
- name: Build Electron release
7985
run: pnpm release
8086
env:
@@ -85,8 +91,12 @@ jobs:
8591
VITE_LASTFM_SECRET: ${{ secrets.LASTFM_SECRET }}
8692
VITE_GITHUB_REPOSITORY: ${{ github.repository }}
8793
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
88-
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
94+
APPLE_API_KEY: .secrets/AuthKey.p8
8995
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
96+
- if: matrix.os == 'macos-latest'
97+
name: Cleanup certificates and keys
98+
run: |
99+
rm -rf .secrets
90100
- if: matrix.os == 'ubuntu-latest'
91101
name: Upload release source maps to sentry
92102
continue-on-error: true
@@ -109,7 +119,7 @@ jobs:
109119
110120
# Create new deploy for this Sentry release
111121
sentry-cli releases deploys $SENTRY_RELEASE new -e $SENTRY_DEPLOY_ENVIRONMENT
112-
122+
113123
# - if: matrix.os == 'windows-latest' && steps.getVersion.outputs.releaseType == 'stable'
114124
# name: Upload new winget release
115125
# uses: vedantmgoyal9/winget-releaser@v2

0 commit comments

Comments
 (0)