build(deps-dev): bump pytest from 8.3.2 to 8.3.3 (#130) #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
packages: | |
permissions: | |
attestations: write | |
id-token: write | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: pip install build==1.2.1 | |
- run: python -m build | |
- name: generate build provenance | |
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3 | |
with: | |
subject-path: "${{ github.workspace }}/dist/*" | |
- name: Upload Packages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: packages | |
path: | | |
dist/*.whl | |
dist/*tar.gz | |
publish-pypi: | |
needs: | |
- packages | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: packages | |
path: dist | |
- name: Upload pypi.org | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b | |
with: | |
repository-url: https://upload.pypi.org/legacy/ |