-
Notifications
You must be signed in to change notification settings - Fork 18
executable file
·171 lines (166 loc) · 6.59 KB
/
master_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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
name: Master CI Build & Deploy
on:
push:
branches:
- master
jobs:
build_en_docs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.7]
name: Build and deploy english docs
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/vircadia/video.git
pip install -U Sphinx==3.5.4
pip install --upgrade myst-parser
pip install sphinx_rtd_theme
pip install 'jinja2<3.1'
pip install 'myst-parser==0.16.0'
pip install attr
pip install attrs
- name: Build documentation
shell: bash
run: |
cd docs
make html
mkdir -p build-archives
cd build/html/
tar -czvf ../../build-archives/build-en.tar.gz *
- name: Upload documentation
uses: JulianGro/[email protected]
with:
username: 'docs-vircadia-com'
server: '192.64.118.213'
ssh_password: ${{ secrets.GHA_DOCS_SSH_PASS }}
local_path: 'docs/build-archives/*'
remote_path: '/httpdocs/'
args: '-o ConnectTimeout=5'
- name: Deploy english documentation
shell: bash
run: |
sshpass -p '${{ secrets.GHA_DOCS_SSH_PASS }}' ssh -o StrictHostKeyChecking=no [email protected] "tar -xvzf /httpdocs/build-en.tar.gz -C /httpdocs/ && rm /httpdocs/build-en.tar.gz"
build_translated_docs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.7]
name: Build and deploy translated docs
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/vircadia/video.git
pip install -U Sphinx==3.5.4
pip install --upgrade myst-parser
pip install sphinx_rtd_theme
pip install 'jinja2<3.1'
pip install 'myst-parser==0.16.0'
pip install attr
pip install attrs
- name: Build german documentation
shell: bash
run: |
cd docs
make BUILDDIR=build-de SPHINXOPTS="-Dlanguage=de" html
mkdir -p build-archives
cd build-de/html/
tar -czvf ../../build-archives/build-de.tar.gz *
- name: Build french documentation
shell: bash
run: |
cd docs
make BUILDDIR=build-fr SPHINXOPTS="-Dlanguage=fr" html
mkdir -p build-archives
cd build-fr/html/
tar -czvf ../../build-archives/build-fr.tar.gz *
- name: Build japanese documentation
shell: bash
run: |
cd docs
make BUILDDIR=build-jp SPHINXOPTS="-Dlanguage=jp" html
mkdir -p build-archives
cd build-jp/html/
tar -czvf ../../build-archives/build-jp.tar.gz *
- name: Build spanish documentation
shell: bash
run: |
cd docs
make BUILDDIR=build-es SPHINXOPTS="-Dlanguage=es" html
mkdir -p build-archives
cd build-es/html/
tar -czvf ../../build-archives/build-es.tar.gz *
- name: Build korean documentation
shell: bash
run: |
cd docs
make BUILDDIR=build-ko SPHINXOPTS="-Dlanguage=ko" html
mkdir -p build-archives
cd build-ko/html/
tar -czvf ../../build-archives/build-ko.tar.gz *
- name: Build simplified chinese documentation
shell: bash
run: |
cd docs
make BUILDDIR=build-zh_CN SPHINXOPTS="-Dlanguage=zh_CN" html
mkdir -p build-archives
cd build-zh_CN/html/
tar -czvf ../../build-archives/build-zh_CN.tar.gz *
- name: Build catalan documentation
shell: bash
run: |
cd docs
make BUILDDIR=build-ca SPHINXOPTS="-Dlanguage=ca" html
mkdir -p build-archives
cd build-ca/html/
tar -czvf ../../build-archives/build-ca.tar.gz *
- name: Upload translated documentation
uses: JulianGro/[email protected]
with:
username: 'docs-vircadia-com'
server: '192.64.118.213'
ssh_password: ${{ secrets.GHA_DOCS_SSH_PASS }}
local_path: 'docs/build-archives/*'
remote_path: '/httpdocs/'
args: '-o ConnectTimeout=5'
- name: Deploy german documentation
shell: bash
run: |
sshpass -p '${{ secrets.GHA_DOCS_SSH_PASS }}' ssh -o StrictHostKeyChecking=no [email protected] "mkdir -p /httpdocs/de/ && tar -xvzf /httpdocs/build-de.tar.gz -C /httpdocs/de/ && rm /httpdocs/build-de.tar.gz"
- name: Deploy french documentation
shell: bash
run: |
sshpass -p '${{ secrets.GHA_DOCS_SSH_PASS }}' ssh -o StrictHostKeyChecking=no [email protected] "mkdir -p /httpdocs/fr/ && tar -xvzf /httpdocs/build-fr.tar.gz -C /httpdocs/fr/ && rm /httpdocs/build-fr.tar.gz"
- name: Deploy japanese documentation
shell: bash
run: |
sshpass -p '${{ secrets.GHA_DOCS_SSH_PASS }}' ssh -o StrictHostKeyChecking=no [email protected] "mkdir -p /httpdocs/jp/ && tar -xvzf /httpdocs/build-jp.tar.gz -C /httpdocs/jp/ && rm /httpdocs/build-jp.tar.gz"
- name: Deploy spanish documentation
shell: bash
run: |
sshpass -p '${{ secrets.GHA_DOCS_SSH_PASS }}' ssh -o StrictHostKeyChecking=no [email protected] "mkdir -p /httpdocs/es/ && tar -xvzf /httpdocs/build-es.tar.gz -C /httpdocs/es/ && rm /httpdocs/build-es.tar.gz"
- name: Deploy korean documentation
shell: bash
run: |
sshpass -p '${{ secrets.GHA_DOCS_SSH_PASS }}' ssh -o StrictHostKeyChecking=no [email protected] "mkdir -p /httpdocs/ko/ && tar -xvzf /httpdocs/build-ko.tar.gz -C /httpdocs/ko/ && rm /httpdocs/build-ko.tar.gz"
- name: Deploy simplified chinese documentation
shell: bash
run: |
sshpass -p '${{ secrets.GHA_DOCS_SSH_PASS }}' ssh -o StrictHostKeyChecking=no [email protected] "mkdir -p /httpdocs/zh_CN/ && tar -xvzf /httpdocs/build-zh_CN.tar.gz -C /httpdocs/zh_CN/ && rm /httpdocs/build-zh_CN.tar.gz"
- name: Deploy catalan documentation
shell: bash
run: |
sshpass -p '${{ secrets.GHA_DOCS_SSH_PASS }}' ssh -o StrictHostKeyChecking=no [email protected] "mkdir -p /httpdocs/ca/ && tar -xvzf /httpdocs/build-ca.tar.gz -C /httpdocs/ca/ && rm /httpdocs/build-ca.tar.gz"