2021-04-20 21:28:50 +02:00
|
|
|
name: Build and deploy to gh-pages
|
2021-04-20 22:50:38 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-04-20 21:28:50 +02:00
|
|
|
jobs:
|
|
|
|
build-and-deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout 📥
|
|
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
|
2021-04-20 21:43:59 +02:00
|
|
|
- name: Install dependencies 🐄
|
2021-04-20 21:28:50 +02:00
|
|
|
run: |
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install python3-pip
|
2021-05-30 17:37:15 +02:00
|
|
|
pip install mkdocs-material==7.1.6 pygments==2.9.0 mkdocs-redirects==1.0.3
|
2021-04-20 21:43:59 +02:00
|
|
|
|
|
|
|
- name: Build site 🔧
|
2021-04-20 21:45:07 +02:00
|
|
|
run: |
|
|
|
|
mkdocs build --verbose --clean
|
2021-04-20 21:28:50 +02:00
|
|
|
|
|
|
|
- name: Deploy 🚀
|
2021-06-05 19:43:34 +02:00
|
|
|
uses: JamesIves/github-pages-deploy-action@4.1.4
|
2021-04-20 21:28:50 +02:00
|
|
|
with:
|
|
|
|
branch: gh-pages # The branch the action should deploy to.
|
2021-04-20 21:51:22 +02:00
|
|
|
folder: site # The folder the action should deploy.
|