Debian Codegraph @

.github/workflows/python-publish.yml

raw symbols SCIP
1 # This workflow will upload a Python Package using Twine when a release is created
2 # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
4 name: Upload Python Package
5
6 on:
7 release:
8 types: [published]
9
10 permissions:
11 contents: read
12
13 jobs:
14 deploy:
15
16 runs-on: ubuntu-latest
17
18 steps:
19 - uses: actions/checkout@v4
20 - name: Set up Python
21 uses: actions/setup-python@v5
22 with:
23 python-version: '3.x'
24 - name: Install dependencies
25 run: |
26 python -m pip install --upgrade pip
27 pip install build
28 - name: Build package
29 run: python -m build
30 - name: Publish package
31 uses: pypa/gh-action-pypi-publish@release/v1
32 with:
33 user: __token__
34 password: ${{ secrets.PYPI_API_TOKEN }}
35 skip-existing: true