Skip to content

Commit 4e84fd1

Browse files
committed
Copier Template: Github Workflows: releaser: Replace Sigtore signature generation with full Github attestation step.
1 parent def51df commit 4e84fd1

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

template/.github/workflows/releaser.yaml.jinja

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ jobs:
146146
{%- if enable_publication %}
147147

148148
publish-github:
149-
if: {% raw %}${{ startsWith(github.ref, 'refs/tags/') }}{% endraw %}
150149
needs:
151150
- initialize
152151
- package
@@ -189,10 +188,10 @@ jobs:
189188
cd {% raw %}${{ env.DISTRIBUTIONS_PATH }}{% endraw %}
190189
sha256sum {{ distribution_name }}-* >SHA256SUMS.txt
191190

192-
- name: Sign Distributions
193-
uses: sigstore/gh-action-sigstore-python@v3.0.0
191+
- name: Attest Build Provenance
192+
uses: actions/attest-build-provenance@v2
194193
with:
195-
inputs: >-
194+
subject-path: |
196195
{% raw %}${{ env.DISTRIBUTIONS_PATH }}{% endraw %}/SHA256SUMS.txt
197196
{% raw %}${{ env.DISTRIBUTIONS_PATH }}{% endraw %}/{{ distribution_name }}-*
198197

@@ -212,6 +211,7 @@ jobs:
212211
{%- endif %}
213212

214213
- name: Create Release
214+
if: {% raw %}${{ startsWith(github.ref, 'refs/tags/') }}{% endraw %}
215215
env:
216216
GITHUB_TOKEN: {% raw %}${{ github.token }}{% endraw %}
217217
run: |
@@ -220,6 +220,7 @@ jobs:
220220
--notes-file .auxiliary/artifacts/release-notes.rst
221221

222222
- name: Publish Artifacts
223+
if: {% raw %}${{ startsWith(github.ref, 'refs/tags/') }}{% endraw %}
223224
env:
224225
GITHUB_TOKEN: {% raw %}${{ github.token }}{% endraw %}
225226
run: |

0 commit comments

Comments
 (0)