Skip to content

Commit

Permalink
Update publish-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
avanbremen committed Jun 26, 2024
1 parent 35d4c0e commit e0bc35f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Fetch all history for all tags and branches
# mkdocs-git-revision-date-localized-plugin needs access to the last commit that touched a specific file
with:
fetch-depth: 0

- name: Configure Git credentials
run: |
Expand All @@ -35,10 +39,10 @@ jobs:
python-version: 3.x
cache: 'pip'
cache-dependency-path: 'requirements.txt'

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

- name: Cache dependencies
uses: actions/cache@v4
with:
Expand All @@ -51,6 +55,6 @@ jobs:
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r ./requirements.txt
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force

0 comments on commit e0bc35f

Please sign in to comment.