File tree Expand file tree Collapse file tree
template/.github/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff 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: |
You can’t perform that action at this time.
0 commit comments