Skip to content

Commit

Permalink
chore: Add signing in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed Jun 28, 2024
1 parent 9517fae commit e4b87ee
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
# remember to keep this in sync with package.json "engines"
# remember to keep this in sync with package.json's volta->node setting
with:
node-version: 16
node-version: 20
cache: "yarn" # I always get 'yarn cache is not found' but ah well

- name: Build/release Electron app
Expand All @@ -41,3 +41,20 @@ jobs:
release: true # ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
in_github_action: "true"

sign-installer:
runs-on: windows-latest
steps:
- name: Sign installer
if: startsWith(github.ref, 'refs/tags/v')
uses: sillsdev/codesign/.github/workflows/[email protected]
with:
path: BloomPub*.exe
description: BloomPUB Viewer installer
secrets:
certificate: ${{ secrets.CODESIGN_LSDEVSECTIGOEV }}

- name: Confirm signature
uses: sillsdev/codesign/[email protected]
with:
path: BloomPub*.exe

0 comments on commit e4b87ee

Please sign in to comment.