2021-05-14 11:26:31 +02:00
|
|
|
name: Build to GitHub Pages
|
|
|
|
on:
|
2023-05-01 12:43:35 +02:00
|
|
|
workflow_dispatch:
|
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-05-01 12:23:28 +02:00
|
|
|
- run: curl https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/CODE_OF_CONDUCT.md -o docs/contributing/conduct.md
|
2023-08-22 05:40:03 +02:00
|
|
|
- run: python3 -m pip install -r requirements.txt
|
2022-12-20 13:29:35 +01:00
|
|
|
- run: mkdocs build
|
2023-03-30 16:13:55 +02:00
|
|
|
- run: echo docs.spacebar.chat >> site/CNAME
|
2022-12-20 13:29:35 +01:00
|
|
|
- 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.
|