Skip to content

Commit 0a7db4c

Browse files
Now the time on devops
1 parent 2865d56 commit 0a7db4c

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name : This My first Next js build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name : Checkout Repository
13+
uses : actions/checkout@v4.2.2
14+
15+
- name : Setup Node Js
16+
uses : actions/setup-node@v4.2.0
17+
with:
18+
node-version: 22.x
19+
cache: 'npm'
20+
- name : Install dependencies
21+
run : npm install
22+
23+
- name : Build Next js App
24+
run : npm run build
25+
26+
- name: Upload build on artifacts
27+
uses: actions/upload-artifact@v4.6.0
28+
with:
29+
name: nextjs-build
30+
path: out/
31+
32+
33+

0 commit comments

Comments
 (0)