Release v0.3.2 #11
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 to PyPI | |
| # Triggered by pushing a version tag (e.g. `git tag v0.2.0 && git push --tags`). | |
| # Uses PyPI Trusted Publishing (OIDC) — no API tokens stored in GitHub secrets. | |
| # Configure at https://pypi.org/manage/project/splicecraft/publishing/ — add | |
| # a new GitHub publisher with: | |
| # owner: Binomica-Labs | |
| # repository: SpliceCraft | |
| # workflow: publish.yml | |
| # environment: pypi | |
| on: | |
| push: | |
| tags: ['v*'] | |
| jobs: | |
| build-and-publish: | |
| name: Build + publish | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| id-token: write # required for Trusted Publishing (OIDC) | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install build twine | |
| - name: Build sdist + wheel | |
| run: python -m build | |
| - name: Verify package metadata | |
| run: twine check dist/* | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |