Publish Docs to GitHub Pages by @devraj #12
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: publish-docs | |
run-name: Publish Docs to GitHub Pages by @${{ github.actor }} | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- docs/** | |
- .github/workflows/deploy-docs.yml | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install poetry | |
run: pip install poetry | |
- name: Install dependencies | |
run: poetry install | |
- name: Build and Publish to GH Pages | |
run: cd docs && poetry run mkdocs gh-deploy --force --clean --verbose |