Skip to content

Commit

Permalink
Merge pull request #2021 from urfave/publish-docs-python-shuffle
Browse files Browse the repository at this point in the history
Use actions/setup-python in publish-docs
  • Loading branch information
meatballhat authored Nov 30, 2024
2 parents b672dd7 + 0498828 commit b81e255
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ jobs:

- run: make gfmrun
env:
FLAGS: --walk docs/v3/
FLAGS: --walk docs/v3/

- run: make diffcheck

publish:
permissions:
contents: write
contents: write
if: startswith(github.ref, 'refs/tags/')
name: publish
needs: [test-docs]
Expand All @@ -50,21 +50,19 @@ jobs:
with:
fetch-depth: 0

- name: Create virtual environment
run: |
python -m venv venv
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: pip
cache-dependency-path: mkdocs-reqs.txt

- run: |
. venv/bin/activate
make ensure-mkdocs
env:
FLAGS: --upgrade-pip
- name: Ensure mkdocs is available
run: make ensure-mkdocs

- run: make set-mkdocs-remote
- name: Set mkdocs remote
run: make set-mkdocs-remote
env:
MKDOCS_REMOTE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: |
. venv/bin/activate
make deploy-mkdocs
- name: Deploy via mkdocs
run: make deploy-mkdocs
3 changes: 1 addition & 2 deletions mkdocs-reqs.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
mkdocs-git-revision-date-localized-plugin~=1.2
mkdocs-material-extensions~=1.3
mkdocs-material~=8.5
mkdocs-material~=9.5
mkdocs~=1.6
pygments~=2.18

0 comments on commit b81e255

Please sign in to comment.