mirror of https://github.com/eyhc1/rendercv.git
36 lines
799 B
YAML
36 lines
799 B
YAML
name: Deploy documentation
|
|
|
|
# GitHub events that triggers the workflow:
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
|
|
permissions:
|
|
contents: write
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Store cache ID
|
|
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
|
|
|
- name: Create a key
|
|
uses: actions/cache@v4
|
|
with:
|
|
key: mkdocs-material-${{ env.cache_id }}
|
|
path: .cache
|
|
restore-keys: |
|
|
mkdocs-material-
|
|
|
|
- name: Deploy documentation
|
|
run: |
|
|
pip install hatch
|
|
hatch run docs:deploy
|