Skip to content

Commit

Permalink
Attest build provenance (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentame authored Oct 28, 2024
1 parent 9d60c8e commit 255dc78
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
steps:
- name: Check out the repository
uses: actions/[email protected]
Expand Down Expand Up @@ -55,6 +58,12 @@ jobs:
run: |
poetry build --ansi
- name: Attest build provenance
if: steps.check-version.outputs.tag
uses: actions/attest-build-provenance@v1
with:
subject-path: dist/*

- name: Publish package on PyPI
if: steps.check-version.outputs.tag
uses: pypa/[email protected]
Expand All @@ -68,7 +77,7 @@ jobs:
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/

- name: Publish release notes
uses: release-drafter/[email protected]
Expand Down

0 comments on commit 255dc78

Please sign in to comment.