Skip to content

Commit 8b8d53b

Browse files
committed
[build] try to sign windows binary
1 parent da1731d commit 8b8d53b

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/bins.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,28 @@ jobs:
294294
cd ../lnav-build
295295
export PREFIX=$PWD/${{ env.LNAV_BASENAME }}
296296
$PREFIX/bin/lnav.exe -n ../lnav/test/logfile_multiline.0
297-
- name: "⬆️ Upload a Build Artifact"
297+
- name: upload-unsigned-artifact
298298
uses: actions/upload-artifact@v4
299299
with:
300300
name: lnav-windows-${{ matrix.arch }}.zip
301301
path: ${{ env.LNAV_ZIPNAME }}
302302
if-no-files-found: error
303+
- name: sign
304+
uses: signpath/github-action-submit-signing-request@v1.1
305+
env:
306+
# select release-signing policy for main and release branches
307+
SIGNPATH_SIGNING_POLICY_SLUG: |
308+
${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
309+
&& 'test-signing'
310+
|| 'test-signing' }}
311+
with:
312+
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
313+
organization-id: '${{ vars.SIGNPATH_ORGANIZATION_ID }}'
314+
project-slug: 'lnav'
315+
signing-policy-slug: '${{ env.SIGNPATH_SIGNING_POLICY_SLUG }}'
316+
github-artifact-id: "${{steps.upload-unsigned-artifact.outputs.artifact-id}}"
317+
wait-for-completion: true
318+
output-artifact-directory: 'lnav-signed'
303319
- name: Upload windows archive
304320
uses: actions/upload-release-asset@v1.0.2
305321
if: ${{ inputs.upload_url != '' }}

0 commit comments

Comments
 (0)