chore: update pre-commit hooks #465
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs-publish | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
release: | |
types: | |
- published | |
permissions: | |
contents: write | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: "Upgrade pip" | |
run: pip install --upgrade pip | |
- name: "Install requirements" | |
run: pip install -r site/requirements.txt | |
- name: Build and Deploy | |
working-directory: ./site | |
run: | | |
mkdocs build | |
mkdocs gh-deploy --force | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true |