Skip to content

Commit

Permalink
always build installer
Browse files Browse the repository at this point in the history
only sign when build is for a version tag
  • Loading branch information
hahn-kev authored Oct 15, 2024
1 parent 6ce2a5f commit 3cf7e3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/installer-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
tags:
- 'v*' # Build an installer for commits that are tagged starting with 'v' e.g. v1.0
pull_request:
branches:
- main

jobs:
build-installer:
Expand Down Expand Up @@ -74,12 +77,14 @@ jobs:

- name: Sign Installer
uses: sillsdev/codesign/trusted-signing-action@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
credentials: ${{ secrets.TRUSTED_SIGNING_CREDENTIALS }}
files-folder: installer/Output
files-folder-filter: SolidInstaller*.exe

- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: installer/Output/SolidInstaller*.exe
Expand Down

0 comments on commit 3cf7e3e

Please sign in to comment.