Skip to content

Commit f852b24

Browse files
committed
Update release yml
1 parent 5106e03 commit f852b24

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,23 @@ jobs:
3131
run: npm install -g [email protected]
3232
- name: install frontend dependencies
3333
run: pnpm install
34+
35+
- uses: actions/github-script@v6
36+
id: set-args
37+
env:
38+
RUNS_ON: '${{ matrix.platform }}'
39+
with:
40+
script: "process.env.RUNS_ON === macos-latest ? '--target universal_apple_darwin' : \"\""
41+
result-encoding: string
42+
3443
- uses: tauri-apps/tauri-action@v0
3544
env:
3645
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
47+
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
3748
with:
3849
tagName: __VERSION__
3950
releaseName: '__VERSION__'
4051
releaseDraft: false
41-
prerelease: true
52+
prerelease: true
53+
args: ${{ steps.set-args.outputs.result }}

0 commit comments

Comments
 (0)