1.0.0 #2
Workflow file for this run
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: Publish | |
| on: | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build: | |
| name: Execute project build | |
| runs-on: ubuntu-latest | |
| container: python:3.13-bookworm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install build dependencies | |
| run: | | |
| apt-get --yes update | |
| apt-get --yes install curl | |
| pip install build | |
| - run: make build | |
| - name: Store build results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-dist | |
| path: dist/ | |
| if-no-files-found: error | |
| pypi_publish: | |
| name: Publish to PyPI | |
| needs: build | |
| permissions: | |
| # Required for PyPI trusted publishing | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Retrieve build results | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: build-dist | |
| path: dist/ | |
| - name: Publish package distributions to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |