ci: add workflow for publishing docs
This commit is contained in:
parent
e7ef89ef24
commit
f87c696dac
1 changed files with 20 additions and 0 deletions
20
.github/workflows/publish-docs.yml
vendored
Normal file
20
.github/workflows/publish-docs.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
name: Publish docs via GitHub Pages
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
|
- docs/*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Deploy docs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout main
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Deploy docs
|
||||||
|
uses: mhausenblas/mkdocs-deploy-gh-pages@master
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in a new issue