Skip to content

Commit

Permalink
ci: only publish on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nktnet1 committed Dec 1, 2023
1 parent ffd2a14 commit 51e5518
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ jobs:
with:
node-version: 20

- name: Build/release pdfoxjs
- name: Build/release
uses: samuelmeuli/action-electron-builder@v1
with:
args: |
--publish=always
--publish=onTag
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
Expand Down
14 changes: 9 additions & 5 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ fileAssociations:
name: PDF Document
mimeType: application/pdf
role: Editor
publish:
- provider: github
protocol: https

directories:
output: dist
Expand All @@ -22,14 +19,21 @@ extraResources:

win:
target: nsis
nsis:
allowToChangeInstallationDirectory: true
publish:
- provider: github
protocol: https

mac:
target: dmg
publish:
- provider: github
protocol: https

linux:
target: AppImage
category: Office
publish:
- provider: github
protocol: https

extends: null

0 comments on commit 51e5518

Please sign in to comment.