-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (45 loc) · 1.16 KB
/
workflow-build.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
42
43
44
45
46
47
name: Build documentation
on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get disk space
run: |
df -h /
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/lib/mono \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift
df -h /
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Build
run: |
if [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build
- name: Google verification
run: |
cd build
echo "google-site-verification: google1a6263055b2bea44.html" >> google1a6263055b2bea44.html
- uses: actions/upload-artifact@v4
with:
path: ./build
name: build