-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (33 loc) · 944 Bytes
/
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
name: Build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
name: Build Site
runs-on: ubuntu-latest
# Set some sort of timeout in the event of run-away builds. We are limited on concurrent jobs so, get rid of them.
timeout-minutes: 60
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- name: Docusaurus Cache
uses: actions/cache@v4
with:
path: ./node_modules/.cache
key: docusaurus-build-cache-${{ hashFiles('yarn.lock') }}
- name: Build Website
env:
process.env.DOCUSAURUS_SSR_CONCURRENCY: 4
run: yarn cf-pages-deploy