-
Notifications
You must be signed in to change notification settings - Fork 73
41 lines (40 loc) · 1.08 KB
/
ci-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
41
name: Website
on:
pull_request:
branches: [website]
push:
branches: [website]
jobs:
build_publish:
name: Generate Website
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: true
steps:
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Cache node modules
uses: actions/cache@v4
with:
path: ./product-page/src/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('/product-page/**/package-lock.json') }}
- name: Coursier Cache
uses: coursier/cache-action@v6
- name: Build Website
run: ./build.sh
- name: Publish website
if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.BUILD_BOT_SSH_PRIVATE_KEY }}
publish_dir: ./target
publish_branch: gh-pages