-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (56 loc) · 2.14 KB
/
build.yaml
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
name: Release
on:
push:
branches:
- master
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Build a document with mkdocs - src/terraform
uses: ./.github/actions/mkdocs
with:
working-directory: './src/terraform'
- name: Build a document with mkdocs - src/terraform-v1
uses: ./.github/actions/mkdocs
with:
working-directory: './src/terraform-v1'
- name: Build a document with mkdocs - src/terraform-policy
uses: ./.github/actions/mkdocs
with:
working-directory: './src/terraform-policy'
- name: Build a document with mkdocs - src/top
uses: ./.github/actions/mkdocs
with:
working-directory: './src/top'
- name: Build a document with mkdocs - src/usacloud
uses: ./.github/actions/mkdocs
with:
working-directory: './src/usacloud'
- name: Build a document with mkdocs - src/autoscaler
uses: ./.github/actions/mkdocs
with:
working-directory: './src/autoscaler'
- name: Build a document with mkdocs - src/prometheus
uses: ./.github/actions/mkdocs
with:
working-directory: './src/prometheus'
- run: |
mkdir ./public; cp -r ./src/top/site/* public/
mkdir ./public/terraform; cp -r ./src/terraform/site/* ./public/terraform
mkdir ./public/terraform-v1; cp -r ./src/terraform-v1/site/* ./public/terraform-v1
mkdir ./public/terraform-policy; cp -r ./src/terraform-policy/site/* ./public/terraform-policy
mkdir ./public/usacloud; cp -r ./src/usacloud/site/* ./public/usacloud
mkdir ./public/autoscaler; cp -r ./src/autoscaler/site/* ./public/autoscaler
mkdir ./public/prometheus; cp -r ./src/prometheus/site/* ./public/prometheus
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: docs.usacloud.jp
publish_branch: gh-pages