Skip to content

Deploy docs

Deploy docs #22

Workflow file for this run

name: pages
run-name: Deploy docs
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: python -m pip install --upgrade pip
- run: pip install mkdocs mkdocs-material mkdocs-awesome-pages-plugin
- run: pip install -e ./hercscript-lexer
- run: cd docs
- run: mkdocs build -f mkdocs.yml
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: site
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2