mailcow-dockerized-docs/.github/workflows/gh-pages.yml

28 Zeilen
745 B
YAML

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
- name: Install dependencies 🐄
2021-04-20 21:28:50 +02:00
run: |
sudo apt-get -y update
sudo apt-get -y install python3-pip
pip install mkdocs-material==7.2.4 pygments==2.9.0 mkdocs-redirects==1.0.3
- 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 🚀
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.