project: release 0.10.0 #5
Workflow file for this run
This file contains 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: Build and upload PyPI package | |
"on": | |
push: | |
tags: ["v*"] | |
permissions: | |
contents: read | |
id-token: write | |
jobs: | |
build-package: | |
name: Build and verify package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: hynek/build-and-inspect-python-package@v2 | |
release-pypi: | |
name: Upload package to pypi.org | |
runs-on: ubuntu-latest | |
needs: build-package | |
environment: release | |
steps: | |
- name: Download packages built by previous step | |
uses: actions/download-artifact@v4 | |
with: | |
name: Packages | |
path: dist | |
- name: Upload package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |