Skip to content

Deploy

Deploy #420

Workflow file for this run

name: "Deploy"
on:
pull_request:
push:
branches:
- "*"
paths:
- .github/workflows/deploy.yaml
- src/**
- locales/**
- public/**
- vite.config.ts
- vercel.json
- windi.config.ts
- package.json
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 8.2.0
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18
# cache: 'pnpm'
- name: "Install"
run: "pnpm i"
- name: "Build"
run: "pnpm run build"
env:
DEV: false
PROD: true
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-args: '--prod ./dist'
vercel-org-id: ${{ secrets.ORG_ID }}
vercel-project-id: ${{ secrets.PROJECT_ID }}