Skip to content

Commit 67cfba7

Browse files
committed
docs(action): deploy vercel
1 parent 4430193 commit 67cfba7

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/deploy-doc.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths:
7+
- 'docs/**'
8+
jobs:
9+
push-to-vercel:
10+
name: Push to Vercel
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Use Node.js 12
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 12
20+
- name: Install deps and build (with cache)
21+
uses: bahmutov/npm-install@v1
22+
- name: Install Vercel CLI
23+
run: |
24+
npm install -g vercel
25+
- name: Deploy to Vercel
26+
env:
27+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
28+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
29+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
30+
run: |
31+
vercel --prod --token="$VERCEL_TOKEN" -f

docs/vercel.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"project": "orval"
3+
}

0 commit comments

Comments
 (0)