Skip to content

Commit 1435c6a

Browse files
committed
ci: add GitHub Actions workflow for Netlify deploy
1 parent 666e353 commit 1435c6a

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy to Netlify
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: pnpm/action-setup@v4
14+
with:
15+
version: 9
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: pnpm
21+
22+
- run: pnpm install --frozen-lockfile
23+
24+
- run: pnpm build
25+
26+
- name: Deploy to Netlify
27+
uses: nwtgck/actions-netlify@v3
28+
with:
29+
publish-dir: ./dist
30+
production-deploy: true
31+
env:
32+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
33+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 commit comments

Comments
 (0)