Skip to content

Commit 93064ea

Browse files
authored
Create build.yml
1 parent c05a663 commit 93064ea

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build Docusaurus
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: '14'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build Docusaurus
28+
run: npm run build
29+
30+
- name: Archive build artifacts
31+
uses: actions/upload-artifact@v2
32+
with:
33+
name: docusaurus-build
34+
path: build/

0 commit comments

Comments
 (0)