Skip to content

Commit b5e37a7

Browse files
authored
add sigstore signing for releases (#442)
* add sigstore release signing * explicitly update python for Windows
1 parent c4ab0f4 commit b5e37a7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626

2727
permissions:
2828
contents: write
29+
id-token: write
2930

3031
steps:
3132
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -59,6 +60,30 @@ jobs:
5960
shell: bash
6061
run: cmake --build . --parallel --config $BUILD_TYPE --target package
6162

63+
- name: Update Python (Windows)
64+
if: matrix.os == 'windows-latest'
65+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
66+
with:
67+
python-version: '3.12'
68+
69+
- name: Sign (Windows zip)
70+
if: |
71+
startsWith(github.ref, 'refs/tags/') &&
72+
matrix.os == 'windows-latest'
73+
uses: sigstore/gh-action-sigstore-python@f832326173235dcb00dd5d92cd3f353de3188e6c #v3.1.0
74+
with:
75+
inputs: |
76+
./build/clintercept-*.zip
77+
78+
- name: Sign (Linux tgz)
79+
if: |
80+
startsWith(github.ref, 'refs/tags/') &&
81+
matrix.os == 'ubuntu-latest'
82+
uses: sigstore/gh-action-sigstore-python@f832326173235dcb00dd5d92cd3f353de3188e6c #v3.1.0
83+
with:
84+
inputs: |
85+
./build/clintercept-*.tar.gz
86+
6287
- name: Release (Windows zip)
6388
if: |
6489
startsWith(github.ref, 'refs/tags/') &&

0 commit comments

Comments
 (0)