-
Notifications
You must be signed in to change notification settings - Fork 294
40 lines (39 loc) · 1.02 KB
/
website.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
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: website
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 0.68.3
extended: true
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x
architecture: x64
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build Website
run: |-
cd website
./build.sh
- name: Build Docs Site
run: ./docs/build.sh website/public/docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/public