Debian Codegraph @

.github/workflows/publish.yaml

raw symbols SCIP
1 name: Publish
2
3 on:
4 push:
5 tags:
6 - "*"
7
8 concurrency:
9 group: ${{ github.workflow }}-${{ github.ref }}
10 cancel-in-progress: true
11
12 jobs:
13 tests:
14 uses: ./.github/workflows/_test.yaml
15
16 publish:
17 name: Build and Publish to PyPI
18 runs-on: ubuntu-latest
19 needs:
20 - tests
21
22 environment:
23 name: pypi
24 url: https://pypi.org/p/pytouchlinesl
25 permissions:
26 id-token: write
27
28 steps:
29 - name: Checkout the code
30 uses: actions/checkout@v6
31
32 - name: Install `uv`
33 run: |
34 curl -LsSf https://astral.sh/uv/install.sh | sh
35
36 - name: Build the package
37 run: |
38 uvx --from build pyproject-build --installer uv
39
40 - name: Publish to PyPi
41 uses: pypa/[email protected]