Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,23 @@ jobs:
- name: Install frontend dependencies
run: npm ci

- name: Build Tauri app
# Disable updater artifacts on PR builds: fork/Dependabot PRs can't read secrets, and tauri refuses to build when pubkey is set in config but no private key is available.
- name: Build Tauri app (PR — updater disabled)
if: github.event_name == 'pull_request'
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: >-
--target ${{ matrix.target }}
--config {"bundle":{"createUpdaterArtifacts":false}}
${{ matrix.target == 'x86_64-apple-darwin' && '--bundles app' || '' }}

- name: Build Tauri app (push to main — signed)
if: github.event_name == 'push'
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Only use signing keys on push to main (PRs don't need signed artifacts)
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
Expand Down
Loading