Skip to content

Commit

Permalink
Merge pull request #123 from sillsdev/feat/update-siging-step-to-trus…
Browse files Browse the repository at this point in the history
…ted-signing

Use the trusted-signing-service in build-test-installer-release.yml
  • Loading branch information
tim-eves authored Oct 15, 2024
2 parents 976460c + e3472ae commit e9df97c
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions .github/workflows/build-test-installer-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
# run: vstest.console.exe SAScriptingTest.dll

- name: Upload Release/ for installer job
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-artifact@v4
with:
name: Release
Expand All @@ -67,7 +66,6 @@ jobs:
build-installer:
name: Build installer
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -90,37 +88,19 @@ jobs:
- name: list files
run: dir Install/Output/

- name: Upload installer
uses: actions/upload-artifact@v4
- name: Sign installer
if: startsWith(github.ref, 'refs/tags/v')
uses: sillsdev/codesign/trusted-signing-action@v3
with:
name: SpeechAnalyzerInstaller
path: Install/Output/SpeechAnalyzer*.exe

sign-installer:
name: Sign installer
needs: build-installer
if: startsWith(github.ref, 'refs/tags/v')
uses: sillsdev/codesign/.github/workflows/sign.yml@v2
with:
artifact: SpeechAnalyzerInstaller
secrets:
certificate: ${{ secrets.CODESIGN_LSDEVSECTIGOEV }}

create-release:
name: Create Release
needs: sign-installer
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v4
with:
name: SpeechAnalyzerInstaller
credentials: ${{ secrets.TRUSTED_SIGNING_CREDENTIALS }}
files-folder: Install/Output
files-folder-filter: SpeechAnalyzer*.exe

- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: SpeechAnalyzer*.exe
files: Install/Output/SpeechAnalyzer*.exe
body: |
Release for version ${{ github.ref }}
draft: true

0 comments on commit e9df97c

Please sign in to comment.