Skip to content

Commit

Permalink
Attest build provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentame committed Oct 27, 2024
1 parent 16bebc5 commit 65195d8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
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
12 changes: 7 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,15 @@ jobs:
- name: Upload coverage data
if: always() && matrix.session == 'tests'
uses: "actions/upload-artifact@v3.1.3"
uses: actions/upload-artifact@v4
with:
name: coverage-data
name: coverage-data-${{ matrix.python-version }}-${{ matrix.os }}
path: ".coverage.*"
include-hidden-files: true

- name: Upload documentation
if: matrix.session == 'docs-build'
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/_build
Expand Down Expand Up @@ -128,9 +129,10 @@ jobs:
nox --version
- name: Download coverage data
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4
with:
name: coverage-data
pattern: coverage-data-*
merge-multiple: true

- name: Combine coverage data and display human readable report
run: |
Expand Down

0 comments on commit 65195d8

Please sign in to comment.