-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (38 loc) · 1.08 KB
/
deploy-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build and deploy docs
on:
push:
branches:
- main
- main-**
jobs:
build-upload-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Configure Git
run: |
git config --global user.email "bot@modm.io"
git config --global user.name "modm update bot"
- name: Setup Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install modm-data with docs dependencies
run: |
pip3 install ".[docs]"
- name: Clone modm-ext/data.modm.io repository
uses: actions/checkout@v3
with:
repository: modm-ext/data.modm.io
ssh-key: ${{secrets.SSH_KEY_DATA_MODM_IO}}
path: docs/data.modm.io
- name: Build Homepage
run: |
make build-homepage
- name: Push New Docs to Github
run: |
cd docs/data.modm.io
git add -A
git diff-index --quiet HEAD || git commit -m "Update"
git push origin main