docs: update GitHub website (#368) #174
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: Update GitHub website | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "docs/**" | |
- mkdocs.yml | |
- Pipfile | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10 | |
- run: python -m pip install --upgrade pipenv wheel | |
- run: pipenv update | |
- run: pipenv run mkdocs build | |
- uses: actions/checkout@v3 | |
with: | |
ref: gh-pages | |
path: pages | |
- run: | | |
cp -v pages/index.yaml site/ | |
- run: pipenv run ghp-import site -p --force |