| 1 |
name: release to pypi.org |
| 2 |
|
| 3 |
"on": |
| 4 |
push: |
| 5 |
tags: |
| 6 |
- "v[0-9]+.[0-9]+.[0-9]+" |
| 7 |
workflow_dispatch: |
| 8 |
|
| 9 |
jobs: |
| 10 |
main: |
| 11 |
runs-on: ubuntu-latest |
| 12 |
steps: |
| 13 |
- name: check out source |
| 14 |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 |
| 15 |
- name: set up Python |
| 16 |
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c |
| 17 |
with: |
| 18 |
python-version: '3.12' |
| 19 |
- name: install dependencies |
| 20 |
run: python -m pip install -U pip setuptools build |
| 21 |
- run: python -m build |
| 22 |
- name: Publish |
| 23 |
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf |
| 24 |
with: |
| 25 |
user: __token__ |
| 26 |
password: ${{ secrets.PYPI_API_TOKEN }} |
| 27 |
|
| 28 |
permissions: |
| 29 |
contents: read |