Skip to content

Commit

Permalink
Use the trusted-signing-service in build-test-installer-release.yml
Browse files Browse the repository at this point in the history
Switch from the codesign v2 reusable workflow to the v3 trusted-signing-action.
  • Loading branch information
tim-eves authored Oct 10, 2024
1 parent 976460c commit a797ada
Showing 1 changed file with 8 additions and 26 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/build-test-installer-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,37 +90,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: 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 a797ada

Please sign in to comment.