Skip to content

Commit

Permalink
Activate virtual environment before MkDocs deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mgao6767 committed Feb 2, 2025
1 parent be76ec6 commit 3981600
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ jobs:
run: |
uv sync --all-extras --dev
uv pip install .
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Deploy MkDocs
run: mkdocs gh-deploy --force --remote-branch gh-pages
run: |
source .venv/bin/activate
mkdocs gh-deploy --force --remote-branch gh-pages

0 comments on commit 3981600

Please sign in to comment.