Debian Codegraph @

.github/workflows/release.yml

raw symbols SCIP
1 name: Upload Python Package
2
3 on:
4 release:
5 types: [created]
6
7 jobs:
8 publish:
9 runs-on: ubuntu-latest
10 # Specifying a GitHub environment is optional, but strongly encouraged
11 environment: release
12 permissions:
13 # IMPORTANT: this permission is mandatory for trusted publishing
14 id-token: write
15
16 steps:
17 - uses: actions/checkout@v5
18
19 - name: Set up Python
20 uses: actions/setup-python@v6
21 with:
22 python-version: "3.x"
23
24 - name: Install dependencies
25 run: |
26 python -m pip install --upgrade pip
27 pip install build
28
29 - name: Build package distributions
30 run: make sdist
31
32 - name: Publish package distributions to PyPI
33 uses: pypa/gh-action-pypi-publish@release/v1
34
35 - name: Publish Documentation
36 run: |
37 pip install -r requirements-docs.txt
38 pip install -e .
39 mkdocs gh-deploy --force