Debian Codegraph @

.github/workflows/deploy.yml

raw symbols SCIP
1 name: "Deploy to PyPI"
2 on:
3 workflow_dispatch:
4 inputs:
5 tag:
6 description: "Git tag to deploy to PyPI"
7 required: true
8
9 jobs:
10 deploy:
11 name: "Deploy to PyPI"
12 runs-on: ubuntu-latest
13 environment: Deploy
14 steps:
15 - uses: actions/checkout@v4
16 with:
17 ref: ${{ github.event.inputs.tag }}
18 - uses: actions/setup-python@v5
19 with:
20 python-version: 3.x
21 - shell: bash
22 run: |
23 python -m pip install --disable-pip-version-check -U pip
24 python -m pip install -U build twine
25 python -m build
26 python -m twine check dist/*
27 python -m twine upload --username=__token__ --password=${{ secrets.PYPI_TOKEN }} dist/*