-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (33 loc) · 855 Bytes
/
release.yaml
File metadata and controls
44 lines (33 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: release
on:
push:
branches: [master]
jobs:
test:
uses: ./.github/workflows/test_and_build.yml
secrets: inherit
build:
runs-on: ubuntu-latest
environment: CD
needs:
- test
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: |
uv sync
python3 -m pip install pre-commit==3.6.2
- name: Build package
run: uv build
- name: Build docs
run: cd docs && make html SPHINXBUILD="uv run sphinx-build"
- name: Release to PyPI
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: uv publish || echo 'Version exists'