docs: only trigger doc pages rebuild when modifying the doc folder

This commit is contained in:
alfrix committed 2024-03-18 08:53:40 -03:00
1 parent 48b374c73e
commit daed9a098b
2 files changed
+18 -5

No files matched your search

+5 -5
View File
@@ -1,9 +1,9 @@
name: docs
on:
push:
branches:
- master
- main
branches: [master, main]
paths:
- 'docs/**'
permissions:
contents: write
jobs:
@@ -18,12 +18,12 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- 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-
- run: pip install mkdocs-material
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force