-
-
Notifications
You must be signed in to change notification settings - Fork 216
49 lines (49 loc) · 1.23 KB
/
release.yml
File metadata and controls
49 lines (49 loc) · 1.23 KB
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
45
46
47
48
49
name: Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
gh-page-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
- run: uv run --group docs sphinx-build -b html docs docs/_build
- uses: actions/upload-pages-artifact@v4
with:
path: docs/_build
gh-page-deploy:
needs: gh-page-build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@v4
# pypi-build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v6
# - uses: astral-sh/setup-uv@v7
# - run: uvx --from build pyproject-build --sdist --wheel
# - uses: actions/upload-artifact@v6
# with:
# name: release-dists
# path: dist/
# pypi-publish:
# runs-on: ubuntu-latest
# needs:
# - pypi-build
# permissions:
# id-token: write
# steps:
# - uses: actions/download-artifact@v7
# with:
# name: release-dists
# path: dist/
# - uses: pypa/gh-action-pypi-publish@release/v1