Skip to content

Commit

Permalink
docs(action): deploy vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
anymaniax committed Nov 14, 2023
1 parent 4430193 commit 67cfba7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-doc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy
on:
push:
branches:
- master
paths:
- 'docs/**'
jobs:
push-to-vercel:
name: Push to Vercel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Install Vercel CLI
run: |
npm install -g vercel
- name: Deploy to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
vercel --prod --token="$VERCEL_TOKEN" -f
3 changes: 3 additions & 0 deletions docs/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"project": "orval"
}

0 comments on commit 67cfba7

Please sign in to comment.