Skip to content

Commit

Permalink
add: vercel workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alvin1904 committed Aug 10, 2023
1 parent d1ed9f9 commit 14f2cf2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/vercel.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Deploy on Vercel

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
workflow_dispatch:
push:
branches:
- main

jobs:
deploy:
if: github.repository == 'alvin1904/ghostchats-client'
Expand All @@ -15,6 +16,11 @@ jobs:
uses: actions/checkout@v3
- name: install vercel cli
run: npm install -global vercel@latest
- name: Set environment variables from .env file
run: |
set -a
source .env
set +a
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
Expand Down

0 comments on commit 14f2cf2

Please sign in to comment.