Skip to content

Publish Docs to GitHub Pages by @devraj #12

Publish Docs to GitHub Pages by @devraj

Publish Docs to GitHub Pages by @devraj #12

Workflow file for this run

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