Skip to content

Commit 22756b5

Browse files
committed
chore: code review
1 parent fb93953 commit 22756b5

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/mkdocs.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,21 @@ jobs:
8181
runs-on: ubuntu-latest
8282
# don't publish for pull requests
8383
if: github.event.pull_request == null
84-
name: Publish docs
8584
steps:
8685
- name: Checkout
8786
uses: actions/checkout@v6
8887

89-
- name: Deploy docs
90-
uses: mhausenblas/mkdocs-deploy-gh-pages@master
91-
env:
92-
REQUIREMENTS: docs/requirements.txt
93-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
- uses: actions/setup-python@v6
89+
with:
90+
python-version-file: .github/workflows/.python-version
91+
cache: pip
92+
cache-dependency-path: |
93+
"docs/requirements.txt"
94+
95+
- name: Install MkDocs requirements
96+
run: |
97+
pip install -r docs/requirements.txt
98+
99+
- name: Deploy MkDocs website
100+
run: |
101+
mkdocs gh-deploy --force

0 commit comments

Comments
 (0)