| 1 |
name: Publish |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
tags: |
| 6 |
- '*' |
| 7 |
|
| 8 |
jobs: |
| 9 |
publish: |
| 10 |
name: "Publish release" |
| 11 |
runs-on: "ubuntu-latest" |
| 12 |
|
| 13 |
environment: |
| 14 |
name: deploy |
| 15 |
|
| 16 |
steps: |
| 17 |
- uses: "actions/checkout@v4" |
| 18 |
- uses: "actions/setup-python@v5" |
| 19 |
with: |
| 20 |
python-version: 3.8 |
| 21 |
- name: "Install dependencies" |
| 22 |
run: "scripts/install" |
| 23 |
- name: "Build package & docs" |
| 24 |
run: "scripts/build" |
| 25 |
- name: "Publish to PyPI & deploy docs" |
| 26 |
run: "scripts/publish" |
| 27 |
env: |
| 28 |
TWINE_USERNAME: __token__ |
| 29 |
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} |