Skip to content

Commit

Permalink
docs: update build action
Browse files Browse the repository at this point in the history
  • Loading branch information
joschif committed May 21, 2024
1 parent af5d61a commit 0a252b3
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/build-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,28 @@ name: build-website
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- 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: pip install mkdocs-material mknotebooks 'mkdocstrings[crystal,python]'
- run: mkdocs build
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: mkdocs gh-deploy --force

0 comments on commit 0a252b3

Please sign in to comment.