Skip to content

Commit 8a08f74

Browse files
committed
Test gh pages docs build
1 parent d0a10ae commit 8a08f74

File tree

1 file changed

+32
-23
lines changed

1 file changed

+32
-23
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,39 @@ on:
33
release:
44
types: [published]
55
workflow_dispatch:
6+
permissions:
7+
contents: write
68
jobs:
7-
pypi-build:
9+
gh-pages:
810
runs-on: ubuntu-latest
911
steps:
10-
- uses: actions/checkout@v6
11-
- uses: actions/setup-python@v6
12-
with:
13-
python-version: "3.x"
12+
- uses: actions/checkout@v4
1413
- run: sudo apt-get update && sudo apt-get install -y gettext
15-
- run: python -m pip install --upgrade pip build wheel
16-
- run: python -m build --sdist --wheel
17-
- uses: actions/upload-artifact@v6
18-
with:
19-
name: release-dists
20-
path: dist/
21-
pypi-publish:
22-
runs-on: ubuntu-latest
23-
needs:
24-
- pypi-build
25-
permissions:
26-
id-token: write
27-
steps:
28-
- uses: actions/download-artifact@v7
29-
with:
30-
name: release-dists
31-
path: dist/
32-
- uses: pypa/gh-action-pypi-publish@release/v1
14+
- uses: astral-sh/setup-uv@v7
15+
- run: uv run mkdocs gh-deploy --force
16+
# pypi-build:
17+
# runs-on: ubuntu-latest
18+
# steps:
19+
# - uses: actions/checkout@v6
20+
# - uses: actions/setup-python@v6
21+
# with:
22+
# python-version: "3.x"
23+
# - run: sudo apt-get update && sudo apt-get install -y gettext
24+
# - run: python -m pip install --upgrade pip build wheel
25+
# - run: python -m build --sdist --wheel
26+
# - uses: actions/upload-artifact@v6
27+
# with:
28+
# name: release-dists
29+
# path: dist/
30+
# pypi-publish:
31+
# runs-on: ubuntu-latest
32+
# needs:
33+
# - pypi-build
34+
# permissions:
35+
# id-token: write
36+
# steps:
37+
# - uses: actions/download-artifact@v7
38+
# with:
39+
# name: release-dists
40+
# path: dist/
41+
# - uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)