-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.3 KB
/
developer-site-ci.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
name: Diem Developers Website CI
on:
push:
branches: [ auto ]
# would have had
# paths: [ 'developers.diem.com/**' ]
# but want to build rustdocs on main Diem code changes outside of the website too
pull_request:
branches: [ main, master ]
# would have had
# paths: [ 'developers.diem.com/**' ]
# but want to build rustdocs on main Diem code changes outside of the website too
jobs:
test:
runs-on: ubuntu-latest
steps:
# Checks-out the Diem website repository under $GITHUB_WORKSPACE, so job can access it
- uses: actions/checkout@v2
# Installs node and yarn
- name: Use Node.js 12
uses: actions/[email protected]
with:
node-version: '12.x'
# Install git
- name: Install git
run: |
sudo apt --assume-yes update
sudo apt --assume-yes install git
# Install Python 3.8
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
# Test that building the site is successful
- name: Build Site
run: |
cd developers.diem.com
# Only build the straight Docusaurus site now. Do not build rust `-r`
# or python docs `-p` on CI checks until we resolve the best way to
# build them for deployment
./scripts/build_docs.sh -b