Skip to content

Commit

Permalink
Setup CI action for release code signing
Browse files Browse the repository at this point in the history
i have zero faith that this will work first try 👍
  • Loading branch information
pizzaboxer committed Oct 13, 2024
1 parent ff17343 commit eaa5ca5
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run: dotnet publish -p:PublishSingleFile=true -p:CommitHash=${{ github.sha }} -p:CommitRef=${{ github.ref_type }}/${{ github.ref_name }} -r win-x64 -c ${{ matrix.configuration }} --self-contained false .\Bloxstrap\Bloxstrap.csproj

- name: Upload Artifact
id: upload-artifact-${{ matrix.configuration }}
uses: actions/upload-artifact@v4
with:
name: Bloxstrap (${{ matrix.configuration }})
Expand All @@ -40,15 +41,21 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')

steps:
- name: Download x64 release artifact
uses: actions/download-artifact@v4
- name: Sign and download release artifact
uses: signpath/github-action-submit-signing-request@v1
with:
name: Bloxstrap (Release)
path: x64
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: '107b3de5-057b-42fc-a985-3546e4261775'
project-slug: 'bloxstrap'
signing-policy-slug: 'release-signing'
artifact-configuration-slug: 'github-ci'
github-artifact-id: '${{ steps.upload-artifact-Release.outputs.artifact-id }}'
wait-for-completion: true
output-artifact-directory: 'release'

- name: Rename binaries
run: |
mv x64/Bloxstrap.exe Bloxstrap-${{ github.ref_name }}.exe
mv release/Bloxstrap.exe Bloxstrap-${{ github.ref_name }}.exe
- name: Release
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit eaa5ca5

Please sign in to comment.