Skip to content

Merge pull request #62 from THU-feiyue/pre-commit-ci-update-config #117

Merge pull request #62 from THU-feiyue/pre-commit-ci-update-config

Merge pull request #62 from THU-feiyue/pre-commit-ci-update-config #117

Workflow file for this run

name: site
on:
push:
branches:
- main
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
documentation:
name: Build site
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python runtime
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Set up build cache
uses: actions/cache@v4
id: cache
with:
key: ${{ runner.os }}-${{ hashFiles('.cache/**') }}
path: .cache
- name: Install dependencies
run: pip install -r requirements.txt
- name: Deploy documentation
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
mkdocs gh-deploy --force
mkdocs --version