Skip to content

Commit

Permalink
Vercel deploys via github action (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardgill authored Nov 1, 2023
1 parent d357f8d commit cff34d2
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy vercel website

on:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
VERCEL_ORG_ID: team_lMj2cFnO13wwm6LWz3X5kulx
VERCEL_PROJECT_ID: prj_7fENPf4qHhMCnz6j2IGYWDUkJ9wU

steps:
- name: Checkout website repo
uses: actions/checkout@v3
with:
repository: xataio/frontend-next
sparse-checkout: |
apps/website
ref: ${{ inputs.branch || 'main' }}
token: ${{ secrets.GIT_TOKEN }}

- uses: actions/setup-node@v3
with:
node-version: 18

- run: npm i -g vercel@latest

- id: deploy
name: Deploy to Vercel
run: |
vercel deploy --prod --no-wait \
--token ${{ secrets.VERCEL_TOKEN }}

0 comments on commit cff34d2

Please sign in to comment.