-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (69 loc) · 2.15 KB
/
build.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build Eleventy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- name: Clone Code of Copper docs repository
uses: actions/checkout@v2
with:
repository: GMDU/code-of-copper
path: docs/code_of_copper
ref: main
node-version: ${{ matrix.node-version }}
- name: Clone GolemScript docs repository
uses: actions/checkout@v2
with:
repository: GMDU/golemscript
path: docs/golemscript
ref: main
node-version: ${{ matrix.node-version }}
- name: Clone Moxlib docs repository
uses: actions/checkout@v2
with:
repository: moxvallix/moxlib
path: docs/moxlib
ref: improved-documentation
node-version: ${{ matrix.node-version }}
- name: Install dependencies & build
run: |
npm ci
npm run build
mkdir -p ./_site/docs/code_of_copper
mkdir -p ./_site/docs/golemscript
mkdir -p ./_site/docs/moxlib
cd docs/code_of_copper
mkdocs build --site-dir ../../_site/docs/code_of_copper
cd ../golemscript
mkdocs build --site-dir ../../_site/docs/golemscript
cd ../moxlib
mkdocs build --site-dir ../../_site/docs/moxlib
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./_site
github_token: ${{ secrets.GITHUB_TOKEN }}