27 lines
825 B
YAML
27 lines
825 B
YAML
name: Vercel Deploy Preview
|
|
env:
|
|
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
|
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
permissions: write-all
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Install Global Dependencies
|
|
run: npm install --global vercel pnpm
|
|
- run: pnpm install
|
|
- run: pnpm run build
|
|
- uses: amondnet/vercel-action@v25
|
|
with:
|
|
vercel-token: ${{ secrets.VERCEL_TOKEN }}
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
|
|
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
|
|
alias-domains: ${{ secrets.TEST_PREVIEW_DOMAIN}}
|