Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ jobs:
- name: Build
run: pnpm build
- name: Package
run: pnpm exec electron-builder --linux --config build/electron-builder.yml --publish always
# Only AppImage + deb here. Snap is owned by snap-publish.yml
# (separate job, separate credentials). Without an explicit list,
# electron-builder reads the linux.target array in the YAML —
# which includes snap — and tries to publish a snap to the Snap
# Store from this job, which doesn't have the credentials.
run: pnpm exec electron-builder --linux AppImage deb --config build/electron-builder.yml --publish always
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/snap-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ jobs:
# electron-builder's snap target invokes snapcraft under the hood; in
# CI we want destructive-mode (no LXD container).
SNAPCRAFT_BUILD_ENVIRONMENT: 'host'
run: pnpm exec electron-builder --linux snap --config build/electron-builder.yml
# --publish never: electron-builder otherwise tries to push to the
# Snap Store during build when it sees a git tag, but
# SNAPCRAFT_STORE_CREDENTIALS is only available in the publish-*
# jobs below. Disable implicit publish; the dedicated job uses
# snapcore/action-publish with the credentials properly scoped.
run: pnpm exec electron-builder --linux snap --config build/electron-builder.yml --publish never

- name: Locate snap file
id: find
Expand Down
Loading