Skip to content

Commit

Permalink
add automatical deploy of mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
pamrein committed Aug 6, 2024
1 parent 5e5fe7c commit 37adc81
Show file tree
Hide file tree
Showing 3 changed files with 834 additions and 793 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ci-mkdocs

#if pushed from master or main, this action will be triggered
on:
push:
branches:
- master
- main
permissions:
contents: write

#jobs to be executed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- 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 pillow cairosvg
- run: mkdocs gh-deploy --force
Binary file not shown.
Loading

0 comments on commit 37adc81

Please sign in to comment.