Skip to content

Merge pull request #2 from luepges/main #1

Merge pull request #2 from luepges/main

Merge pull request #2 from luepges/main #1

Workflow file for this run

name: Build and update gh pages
on:
push:
branches: main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- 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
- name: Build main site
run: mkdocs build
- name: Build example site
run: mkdocs build --site-dir ../site/website_template
working-directory: website_template
- name: Deploy to gh-pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: oprypin/push-to-gh-pages@v3
with:
publish_dir: site