Skip to content

Commit 5183318

Browse files
authored
Create build CI script to check if site build properly for prod_2 code
1 parent 59422bd commit 5183318

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build Anokha Site
2+
3+
on:
4+
push:
5+
branches:
6+
- prod_2
7+
pull_request:
8+
branches:
9+
- prod_2
10+
workflow_dispatch: # For manual trigger
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [20.10.0]
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v3
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
29+
- name: Install dependencies
30+
run: npm install
31+
32+
- name: Build the Next.js app
33+
run: npm run build
34+
35+
- name: Verify build output
36+
run: echo "Build completed successfully!"

0 commit comments

Comments
 (0)