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 4, 2023
1 parent 4fec9b1 commit 9944f6b
Show file tree
Hide file tree
Showing 3 changed files with 4,235 additions and 4,213 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/vercel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy on Vercel

on:
workflow_dispatch:
push:
branches:
- main

jobs:
deploy:
if: github.repository == 'alvin1904/ghostchats-client'
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: install vercel cli
run: npm install -global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --name "ghostchats" --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
Loading

0 comments on commit 9944f6b

Please sign in to comment.