Skip to content

ci: Allow action to run in pull requests #9

ci: Allow action to run in pull requests

ci: Allow action to run in pull requests #9

Workflow file for this run

name: Publish docs via GitHub Pages
on: [pull_request, push, workflow_dispatch]
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Generate docs
run: |
pip install "jinja2>=2.10" mkdocs-material
sudo gem install html-proofer
tools/populate-docs.sh
- name: Deploy docs
if: github.ref == 'refs/heads/master'
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}