forked from aboutcode-org/www.aboutcode.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patha-b-build-only.yml
More file actions
51 lines (44 loc) · 1.2 KB
/
Copy patha-b-build-only.yml
File metadata and controls
51 lines (44 loc) · 1.2 KB
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
48
49
50
51
name: Build Docusaurus Site (Manual)
on:
workflow_dispatch:
inputs:
target:
description: "Build target (affects baseUrl config)"
required: true
default: "dreamhost"
type: choice
options:
- dreamhost
- gh
permissions:
contents: read
jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20
cache: npm
cache-dependency-path: website/package-lock.json
- name: Install dependencies
run: |
cd website
npm ci
- name: Build Docusaurus site
env:
DEPLOY_TARGET: ${{ inputs.target }}
run: |
cd website
npm run build
- name: Upload build artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: docusaurus-build
path: website/build
# JMH -- TBD:
# retention-days: 7