Skip to content

[lint] use pre-commit to auto check and lint #202

[lint] use pre-commit to auto check and lint

[lint] use pre-commit to auto check and lint #202

Workflow file for this run

name: "Check and Publish Docs"
on:
pull_request:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# add .nojekyll to notice Pages use the _* dirs
- name: copy the generated site
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
mkdir public
touch public/.nojekyll
cp -r docs/_build/html/* public/
# push to gh-pages branch
- name: github pages deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: peaceiris/[email protected]
env:
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: public