Skip to content

Commit 511dba1

Browse files
committed
update build for previews
1 parent 161d386 commit 511dba1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/preview.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,21 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16+
17+
- name: Set timestamp for build/deploy
18+
run: echo "TIMESTAMP=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
1622
with:
17-
sparse-checkout: |
18-
build
23+
node-version: 20
24+
cache: "pnpm"
25+
26+
- name: Install dependencies
27+
run: make install
28+
29+
- name: Build the website
30+
run: make build
1931

2032
- name: Set up SSH key
2133
uses: webfactory/[email protected]

0 commit comments

Comments
 (0)