mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Setup CI action for release code signing
i have zero faith that this will work first try 👍
This commit is contained in:
parent
ff17343279
commit
eaa5ca5d81
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -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
|
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
|
- name: Upload Artifact
|
||||||
|
id: upload-artifact-${{ matrix.configuration }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Bloxstrap (${{ matrix.configuration }})
|
name: Bloxstrap (${{ matrix.configuration }})
|
||||||
@ -40,15 +41,21 @@ jobs:
|
|||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download x64 release artifact
|
- name: Sign and download release artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: signpath/github-action-submit-signing-request@v1
|
||||||
with:
|
with:
|
||||||
name: Bloxstrap (Release)
|
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
|
||||||
path: x64
|
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
|
- name: Rename binaries
|
||||||
run: |
|
run: |
|
||||||
mv x64/Bloxstrap.exe Bloxstrap-${{ github.ref_name }}.exe
|
mv release/Bloxstrap.exe Bloxstrap-${{ github.ref_name }}.exe
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user