Skip to content

Commit bee7b8e

Browse files
committed
GitHub Action deploy to vercel
1 parent 0847275 commit bee7b8e

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy
2+
3+
on:
4+
discussion:
5+
types: [created, edited]
6+
push:
7+
branches:
8+
- next14
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Install Vercel cli
16+
run: npm install -g vercel
17+
- name: Setup
18+
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
19+
- name: Build
20+
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
21+
- name: Deploy
22+
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

.github/workflows/discussion-opened.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)