Skip to content

Commit ffc7923

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

File tree

1 file changed

+32
-24
lines changed

1 file changed

+32
-24
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)