Skip to content

Commit

Permalink
Run mkdocs in the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mbraak committed Sep 22, 2023
1 parent 1b882ad commit cf0590a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@ jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest

steps:
- name: Checkout main
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install python packages
run: |
python -m pip install --upgrade pip && pip install wheel && pip install -r requirements_docs.txt
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: ./mkdocs.yml
- name: Run mkdocs
run: mkdocs gh-deploy
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
site_name: django-mptt-admin
theme: readthedocs

0 comments on commit cf0590a

Please sign in to comment.