Skip to content

[course] 日常

[course] 日常 #9

Workflow file for this run

# https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions
name: deploy
on:
push:
branches:
- main
paths-ignore:
- '.vscode/**'
- '.github/**'
- 'scripts/**'
- '.pre-commit-config.yaml'
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # RSS plugin needs all history
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
cache-dependency-path: justfile
- uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ts-graphviz/setup-graphviz@v1
- run: just bootstrap
- run: mkdocs gh-deploy --force --no-history