Debian Codegraph @

.github/workflows/release.yml

raw symbols SCIP
1 # This workflows 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: Publish Python Package
5
6 on:
7 release:
8 types: [created]
9
10 jobs:
11 deploy:
12 environment: pypi
13 runs-on: ubuntu-latest
14 permissions:
15 contents: read
16 id-token: write
17
18 steps:
19 - uses: actions/checkout@v6
20
21 - name: Set up Python
22 uses: actions/setup-python@v6
23 with:
24 python-version: '3.x'
25
26 - name: Install dependencies
27 run: |
28 python -m pip install --upgrade pip
29 python -m pip install build
30
31 - name: Build package
32 run: |
33 python -m build
34
35 - name: Publish package distributions to PyPI
36 uses: pypa/gh-action-pypi-publish@release/v1
37