Debian Codegraph @

.github/workflows/publish.yaml

raw
1 name: Upload Python Package to PyPI
2
3 on:
4 release:
5 types: [created]
6
7 jobs:
8 pypi-publish:
9 name: Publish release to PyPI
10 runs-on: ubuntu-latest
11 environment:
12 name: pypi
13 url: https://pypi.org/p/json-schema-to-pydantic
14 permissions:
15 id-token: write
16 steps:
17 - uses: actions/checkout@v4
18
19 - name: Install uv
20 uses: astral-sh/setup-uv@v5
21 with:
22 # Install a specific version of uv.
23 version: "0.7.3"
24 enable-cache: true
25 cache-dependency-glob: "uv.lock"
26
27 - name: Set up Python
28 run: uv python install
29
30 - name: Install the project
31 run: uv sync --frozen --all-extras --dev
32
33 - name: Build package
34 run: uv build
35
36 - name: Publish package distributions to PyPI
37 uses: pypa/gh-action-pypi-publish@release/v1