Skip to content

Commit 78744ee

Browse files
committed
chore: update .gitignore and add GitHub Actions for deployment
- Added .vercel to .gitignore to prevent Vercel configuration files from being tracked. - Created a new GitHub Actions workflow for deploying the website on push to the main branch.
1 parent 7444fec commit 78744ee

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: deploy website
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: amondnet/vercel-action@v25
13+
with:
14+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
15+
vercel-org-id: ${{ secrets.ORG_ID}}
16+
vercel-project-id: ${{ secrets.PROJECT_ID}}
17+
vercel-args: "--prod"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ yarn-error.log*
2525
# others
2626
.env*.local
2727
.vercel
28-
next-env.d.ts
28+
next-env.d.ts
29+
.vercel

0 commit comments

Comments
 (0)