-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (29 loc) · 803 Bytes
/
build.yml
File metadata and controls
36 lines (29 loc) · 803 Bytes
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
name: Build docs
on:
workflow_dispatch:
inputs:
branch:
description: 'Which branch of the docs repo to build'
required: true
default: 'staging'
jobs:
build-and-prepare-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install Dependencies
run: npm install
- name: Prepare Docs
run: node scripts/prepare-docs --docs-branch=${{ github.event.inputs.branch }}
- name: Build
run: npm run build
- name: Cache
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.inputs.branch }}-docs
path: build/