Debian Codegraph @

.github/workflows/deploy_pypi.yml

raw symbols SCIP
1 # DERIVED FROM: https://realpython.com/github-actions-python
2
3 # human readable name (shows up on Github)
4 name: Deploy code to PyPI.
5
6 on:
7 release:
8 types: [published]
9 workflow_call:
10 workflow_dispatch:
11
12 jobs:
13 publish:
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@v4
17 - name: Set up Python
18 uses: actions/setup-python@v5
19 with:
20 python-version: "3.13"
21
22 - name: Install dependencies
23 run: |
24 python -m pip install --upgrade pip
25 python -m pip install build
26
27 - name: Build package
28 run: python -m build
29
30 - name: Upload to PyPI
31 uses: pypa/gh-action-pypi-publish@release/v1
32 with:
33 user: __token__
34 password: ${{ secrets.PYPI_API_TOKEN }}