Skip to content

Commit

Permalink
docs: configured docs deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelPanic92 committed Jun 5, 2024
1 parent 6d02611 commit 038a94a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/vercel-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Vercel Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
paths:
- doc/**
branches:
- main
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
with:
version: 9.1.2
- name: Install Vercel CLI
working-directory: ./doc
run: pnpm install --global vercel@latest
- name: Pull Vercel Environment Information
working-directory: ./doc
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Install
working-directory: ./doc
run: pnpm i
- name: Build Project Artifacts
working-directory: ./doc
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
working-directory: ./doc
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit 038a94a

Please sign in to comment.