mirror of
https://github.com/rendercv/rendercv.git
synced 2026-03-22 16:43:42 -04:00
update workflows
This commit is contained in:
33
.github/workflows/deploy-docs.yaml
vendored
33
.github/workflows/deploy-docs.yaml
vendored
@@ -1,25 +1,38 @@
|
||||
name: Deploy documentation
|
||||
|
||||
# GitHub events that triggers the workflow:
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.11
|
||||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
||||
- uses: actions/cache@v3
|
||||
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-
|
||||
- run: pip install mkdocs-material
|
||||
- run: pip install mkdocstrings-python
|
||||
- run: mkdocs gh-deploy --force
|
||||
|
||||
- name: Deploy documentation
|
||||
run: |
|
||||
pip install mkdocs-material
|
||||
pip install mkdocstrings-python
|
||||
mkdocs gh-deploy --force
|
||||
|
||||
Reference in New Issue
Block a user