Skip to content

Commit 9fa7327

Browse files
committed
Use actions/setup-python in publish-docs
instead of managing a virtualenv directly which hopefully resolves the problem with mkdocs not finding its extensions
1 parent b672dd7 commit 9fa7327

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/publish-docs.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434

3535
- run: make gfmrun
3636
env:
37-
FLAGS: --walk docs/v3/
37+
FLAGS: --walk docs/v3/
3838

3939
- run: make diffcheck
4040

4141
publish:
4242
permissions:
43-
contents: write
43+
contents: write
4444
if: startswith(github.ref, 'refs/tags/')
4545
name: publish
4646
needs: [test-docs]
@@ -50,21 +50,20 @@ jobs:
5050
with:
5151
fetch-depth: 0
5252

53-
- name: Create virtual environment
54-
run: |
55-
python -m venv venv
53+
- uses: actions/setup-python@v5
54+
with:
55+
python-version: '3.13'
56+
cache: pip
5657

57-
- run: |
58-
. venv/bin/activate
59-
make ensure-mkdocs
58+
- name: Ensure mkdocs is available
59+
run: make ensure-mkdocs
6060
env:
6161
FLAGS: --upgrade-pip
6262

63-
- run: make set-mkdocs-remote
63+
- name: Set mkdocs remote
64+
run: make set-mkdocs-remote
6465
env:
6566
MKDOCS_REMOTE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6667

67-
- run: |
68-
. venv/bin/activate
69-
make deploy-mkdocs
70-
68+
- name: Deploy via mkdocs
69+
run: make deploy-mkdocs

0 commit comments

Comments
 (0)