Skip to content

Commit b81e255

Browse files
authored
Merge pull request #2021 from urfave/publish-docs-python-shuffle
Use actions/setup-python in publish-docs
2 parents b672dd7 + 0498828 commit b81e255

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

.github/workflows/publish-docs.yml

+13-15
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,19 @@ 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
57+
cache-dependency-path: mkdocs-reqs.txt
5658

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

63-
- run: make set-mkdocs-remote
62+
- name: Set mkdocs remote
63+
run: make set-mkdocs-remote
6464
env:
6565
MKDOCS_REMOTE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6666

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

mkdocs-reqs.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
mkdocs-git-revision-date-localized-plugin~=1.2
2-
mkdocs-material-extensions~=1.3
3-
mkdocs-material~=8.5
2+
mkdocs-material~=9.5
43
mkdocs~=1.6
54
pygments~=2.18

0 commit comments

Comments
 (0)