Skip to content

Update documentation #36

Update documentation

Update documentation #36

Workflow file for this run

name: ci
on:
push:
branches:
- master
- main
permissions:
contents: write
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 -r requirements.txt
- name: Patch site_url for GitHub Pages
run: |
sed -i 's|https://mkdocs.python-cqrs.dev/|https://vadikko2.github.io/python-cqrs-mkdocs/|g' mkdocs.yml
- name: Build and verify assets
run: |
mkdocs build --strict
ls -la site/
test -f site/stylesheets/extra.css || (echo "ERROR: extra.css not in build" && exit 1)
test -f site/javascripts/star-link.js || (echo "ERROR: star-link.js not in build" && exit 1)
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force