Skip to content

Commit

Permalink
Ensure doc dependencies are installed when deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
p-j-smith committed Sep 11, 2023
1 parent f49f2ed commit 24cb68b
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
- name: Build docs
run: mkdocs build

- name: Upload static docs
uses: actions/upload-artifact@v3
with:
Expand All @@ -53,5 +52,27 @@ jobs:
if: "startsWith(github.ref, 'refs/tags/')"
needs: [build]
steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Install python
uses: actions/setup-python@v4
with:
python-version: 3.x

- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[doc]"
- name: Deploy to github pages
run: mkdocs gh-deploy --force

0 comments on commit 24cb68b

Please sign in to comment.