GitHub Actions: Deploy to Vercel on main branch
cgen-bf3e36f905744081a7f22e3f970a3523
This commit is contained in:
parent
6a2e138dfd
commit
ded3b59ea0
1 changed files with 41 additions and 0 deletions
41
.github/workflows/deploy.yml
vendored
Normal file
41
.github/workflows/deploy.yml
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Use Node.js 20.x
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20.x
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
|
env:
|
||||||
|
VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }}
|
||||||
|
VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }}
|
||||||
|
VITE_API_BASE: ${{ secrets.VITE_API_BASE }}
|
||||||
|
VITE_DISCORD_CLIENT_ID: ${{ secrets.VITE_DISCORD_CLIENT_ID }}
|
||||||
|
VITE_DEVCONNECT_URL: ${{ secrets.VITE_DEVCONNECT_URL }}
|
||||||
|
VITE_DEVCONNECT_ANON_KEY: ${{ secrets.VITE_DEVCONNECT_ANON_KEY }}
|
||||||
|
VITE_BUILDER_API_KEY: ${{ secrets.VITE_BUILDER_API_KEY }}
|
||||||
|
|
||||||
|
- name: Deploy to Vercel
|
||||||
|
uses: vercel/action@v6
|
||||||
|
with:
|
||||||
|
vercel-token: ${{ secrets.VERCEL_TOKEN }}
|
||||||
|
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
|
||||||
|
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||||
|
scope: ${{ secrets.VERCEL_ORG_ID }}
|
||||||
Loading…
Reference in a new issue