Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou authored Nov 12, 2023
1 parent fc4997a commit cc7bb69
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions .github/workflows/mdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,35 @@ on:
- documentation/mkdocs.y*ml
workflow_dispatch:

# permissions:
# contents: write

jobs:
sync:
deploy:
name: "Deploy documentation"
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Setup python"
uses: actions/setup-python@v4
with:
python-version: 3.x

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

- name: "Cache"
uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: "Install mkdocs"
run: pip install mkdocs-material

- name: "Deploy mkdocs"
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: documentation/mkdocs.yaml
REQUIREMENTS: documentation/requirements.txt
EXTRA_PACKAGES: build-base
- name: "Run mkdocs"
run: documentation/mkdocs gh-deploy --force

0 comments on commit cc7bb69

Please sign in to comment.