Skip to content

Deploy docs

Deploy docs #55

Workflow file for this run

name: Deploy docs
on:
push:
branches:
- main
paths:
- docs/**
- mkdocs.yaml
- .github/workflows/docs.yaml
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdocs build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload static files as artifact
id: deployment
uses: actions/[email protected]
with:
path: site/
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]