Skip to content

Commit

Permalink
try github actions environments for signpath
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Sep 7, 2024
1 parent 60ce0af commit 3ec8bca
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,6 @@ jobs:
with:
name: fishnet-x86_64-pc-windows-gnu-unsigned
path: fishnet-x86_64-pc-windows-gnu-unsigned.exe
- uses: signpath/github-action-submit-signing-request@v0.4
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: ${{ vars.SIGNPATH_ORGANIZATION_ID }}
project-slug: 'fishnet'
signing-policy-slug: ${{ startsWith(github.ref, 'refs/tags/v') && 'release-signing' || 'test-signing' }}
github-artifact-id: ${{ steps.upload-unsigned-artifact.outputs.artifact-id }}
wait-for-completion: true
wait-for-completion-timeout-in-seconds: 7200
output-artifact-directory: signed
- run: mv signed/fishnet-x86_64-pc-windows-gnu-unsigned.exe signed/fishnet-x86_64-pc-windows-gnu.exe
- uses: actions/upload-artifact@v4
with:
name: fishnet-x86_64-pc-windows-gnu
path: signed
macos-x86-64:
runs-on: macos-13
steps:
Expand Down Expand Up @@ -148,13 +133,35 @@ jobs:
with:
name: fishnet-aarch64-apple-darwin
path: fishnet-aarch64-apple-darwin
windows-x86-64_signed:
runs-on: ubuntu-latest
environment:
name: ${{ startsWith(github.ref, 'refs/tags/v') && 'signpath_release' || 'signpath_test' }}
needs:
- windows-x86-64
steps:
- uses: signpath/github-action-submit-signing-request@v0.4
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: ${{ vars.SIGNPATH_ORGANIZATION_ID }}
project-slug: 'fishnet'
signing-policy-slug: ${{ vars.SIGNPATH_SIGNING_POLICY_SLUG }}
github-artifact-id: ${{ needs.windows-x86-64.upload-unsigned-artifact.outputs.artifact-id }}
wait-for-completion: true
wait-for-completion-timeout-in-seconds: 7200
output-artifact-directory: signed
- run: mv signed/fishnet-x86_64-pc-windows-gnu-unsigned.exe signed/fishnet-x86_64-pc-windows-gnu.exe
- uses: actions/upload-artifact@v4
with:
name: fishnet-x86_64-pc-windows-gnu
path: signed
github_release:
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- linux
- windows-x86-64
- windows-x86-64_signed
- macos-x86-64
- macos-aarch64
if: startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit 3ec8bca

Please sign in to comment.