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 aa4f27a commit cb0fda7
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

jobs:
release:
build-installer:
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -38,7 +38,9 @@ jobs:

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: true # ${{ startsWith(github.ref, 'refs/tags/v') }}
# release: true # ${{ startsWith(github.ref, 'refs/tags/v') }}

release: false
env:
in_github_action: "true"

Expand All @@ -50,9 +52,28 @@ jobs:

sign-installer:
name: Sign installer
if: startsWith(github.ref, 'refs/tags/v')
needs: build-installer
#if: startsWith(github.ref, 'refs/tags/v')
uses: sillsdev/codesign/.github/workflows/[email protected]
with:
artifact: BloomPubViewerSetup
secrets:
certificate: ${{ secrets.CODESIGN_LSDEVSECTIGOEV }}

create-release:
name: Create Release
needs: sign-installer
runs-on: windows-latest

steps:
- uses: actions/download-artifact@v4
with:
name: BloomPubViewerSetup

- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: "**/BloomPub*.exe"
body: |
Release for version ${{ github.ref }}
draft: true

0 comments on commit cb0fda7

Please sign in to comment.