Skip to content

setting up gh build and publish to gh-pages workflow #1

setting up gh build and publish to gh-pages workflow

setting up gh build and publish to gh-pages workflow #1

Workflow file for this run

name​: ​Documentation​
​on​:

Check failure on line 3 in .github/workflows/gh-pages.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/gh-pages.yaml

Invalid workflow file

You have an error in your yaml syntax on line 3
  ​push​:
    ​branches​:
      - ​main​
    ​paths​:
      - ​docs​
- src
      - ​README.md​
​jobs​:
  ​docs​:
    ​runs-on​: ​ubuntu-latest​
    ​steps​:
- ​uses​: ​actions/checkout@v2
with:
fetch-depth: 0
- ​uses​: ​actions/setup-python@v2​
- run: pip install --upgrade pip && pip install mkdocs mkdocs-gen-files mkdocstrings
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Publish docs
run: mkdocs gh-deploy