build(deps): bump actions/cache from 3 to 4 (#101) #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: deploy-docs | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
# Paths can be used to only trigger actions when you have edited certain files, such as a file within the /docs directory | |
paths: | |
- "README.md" | |
- "mkdocs.yaml" | |
- "docs/**/*" | |
- ".github/workflows/deploy-docs.yaml" | |
- "chezmoi/.chezmoidata.yaml" | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- uses: actions/cache@v4 | |
with: | |
key: ${{ github.ref }} | |
path: .cache | |
- run: | | |
pip install -r docs/requirements.txt | |
mkdocs gh-deploy --force |