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

33 Zeilen
1 KiB
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.5
2021-10-04 11:44:03 +02:00
with:
token: '${{ secrets.GHPAGES_ACTION_CHECKOUT_TOKEN_PAT }}'
2021-04-20 21:28:50 +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
pip install mkdocs-material==7.3.5 pygments==2.10.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.5
2021-04-20 21:28:50 +02:00
with:
2021-10-04 11:44:03 +02:00
token: '${{ secrets.GHPAGES_ACTION_DEPLOY_TOKEN_PAT }}'
2021-10-04 12:03:08 +02:00
git-config-name: '${{ secrets.GHPAGES_ACTION_DEPLOY_GITNAME_PAT }}'
git-config-email: '${{ secrets.GHPAGES_ACTION_DEPLOY_GITEMAIL_PAT }}'
2021-04-20 21:28:50 +02:00
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.