2021-05-14 11:26:31 +02:00
|
|
|
name: Build to GitHub Pages
|
|
|
|
on:
|
2022-12-20 13:29:35 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-05-14 16:47:38 +02:00
|
|
|
|
2021-05-14 11:26:31 +02:00
|
|
|
jobs:
|
2022-12-20 13:29:35 +01:00
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.x
|
2023-01-10 14:29:03 +01:00
|
|
|
- run: python3 -m pip install mkdocs-material mkdocs-swagger-ui-tag mkdocs-section-index
|
2022-12-20 13:29:35 +01:00
|
|
|
- run: mkdocs build
|
|
|
|
- run: echo docs.fosscord.com >> site/CNAME
|
|
|
|
- name: Deploy 🚀
|
|
|
|
uses: JamesIves/github-pages-deploy-action@4.1.3
|
|
|
|
with:
|
|
|
|
branch: gh-pages # The branch the action should deploy to.
|
|
|
|
folder: site # The folder the action should deploy.
|