Skip to content

Commit 6b8b7c1

Browse files
committed
CI (Windows): signs PE files
1 parent af26828 commit 6b8b7c1

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,17 +707,41 @@ jobs:
707707
- name: run tests
708708
run: ctest --output-on-failure
709709

710+
- if: github.event_name == 'push' && github.repository == 'fastfetch-cli/fastfetch'
711+
id: upload-unsigned-artifact
712+
name: upload artifacts for signing
713+
uses: actions/upload-artifact@v4
714+
with:
715+
name: fastfetch-windows-${{ matrix.arch }}
716+
path: |
717+
*.dll
718+
fastfetch.exe
719+
flashfetch.exe
720+
721+
- if: github.event_name == 'push' && github.repository == 'fastfetch-cli/fastfetch'
722+
name: submit signing request
723+
uses: signpath/github-action-submit-signing-request@v1
724+
with:
725+
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
726+
organization-id: '${{ vars.SIGNPATH_ORG_ID }}'
727+
project-slug: 'fastfetch'
728+
signing-policy-slug: 'test-signing'
729+
github-artifact-id: '${{ steps.upload-unsigned-artifact.outputs.artifact-id }}'
730+
wait-for-completion: true
731+
output-artifact-directory: '.'
732+
710733
- name: create zip archive
711734
run: 7z a -tzip -mx9 -bd -y fastfetch-windows-${{ matrix.arch }}.zip LICENSE *.dll fastfetch.exe flashfetch.exe presets
712735

713736
- name: create 7z archive
714737
run: 7z a -t7z -mx9 -bd -y fastfetch-windows-${{ matrix.arch }}.7z LICENSE *.dll fastfetch.exe flashfetch.exe presets
715738

716-
- name: upload artifacts
739+
- name: upload true artifacts
717740
uses: actions/upload-artifact@v4
718741
with:
719742
name: fastfetch-windows-${{ matrix.arch }}
720743
path: ./fastfetch-windows-${{ matrix.arch }}.*
744+
overwrite: true
721745

722746
release:
723747
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'fastfetch-cli/fastfetch'

0 commit comments

Comments
 (0)