Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use actions/setup-python in publish-docs #2021

Merged
merged 10 commits into from
Nov 30, 2024
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
Loading