packages #59
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: packages | |
| on: | |
| push: | |
| tags: | |
| - 'v[0-9]+.[0-9]+.[0-9]+' | |
| - 'v[0-9]+.[0-9]+.[0-9]+a[0-9]+' | |
| - 'v[0-9]+.[0-9]+.[0-9]+b[0-9]+' | |
| - 'v[0-9]+.[0-9]+.[0-9]+rc[0-9]+' | |
| # Dry-run only | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 15 * * SUN' | |
| env: | |
| PYTHON_VERSION: "3.13" | |
| jobs: | |
| pip_build: | |
| name: Build PyPI | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| id-token: write # to authenticate as Trusted Publisher to pypi.org | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - run: pip install build | |
| - run: python -m build | |
| - name: Publish to PyPI | |
| if: github.event_name == 'push' | |
| uses: pypa/gh-action-pypi-publish@release/v1 |