Skip to content

Commit 012bba4

Browse files
author
Puneeth
committed
Add GitHub Pages deploy workflow
Made-with: Cursor
1 parent 668b8d4 commit 012bba4

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: pages
14+
cancel-in-progress: false
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: npm
26+
27+
- run: npm ci
28+
- run: npm run build
29+
30+
- uses: actions/upload-pages-artifact@v3
31+
with:
32+
path: dist
33+
34+
deploy:
35+
needs: build
36+
runs-on: ubuntu-latest
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deploy.outputs.page_url }}
40+
steps:
41+
- uses: actions/deploy-pages@v4
42+
id: deploy

0 commit comments

Comments
 (0)