added build action for website

This commit is contained in:
Rishab Kumar 2023-03-14 12:10:59 -04:00
parent 631f66f835
commit 0b007a5108

View File

@ -0,0 +1,21 @@
name: build and deploy website
on:
push:
branches:
- gh_pages
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force