Skip to content

Commit 8077098

Browse files
committed
add actions for dev and production
1 parent 1a85ab8 commit 8077098

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed
File renamed without changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Vercel Production Deployment
2+
env:
3+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5+
on:
6+
push:
7+
branches:
8+
- main
9+
jobs:
10+
Deploy-Preview:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install Vercel CLI
15+
run: npm install --global vercel@latest pmpm@latest
16+
- name: Install Dependencies
17+
run: pnpm install
18+
- name: Build Project Artifacts
19+
run: pnpm run build && cd docs && pnpm run predocs:build
20+
- name: Pull Vercel Environment Information
21+
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
22+
- name: Build Project Artifacts
23+
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
24+
- name: Deploy Project Artifacts to Vercel
25+
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vercel

0 commit comments

Comments
 (0)