Skip to content

Commit

Permalink
Merge pull request #116 from flatironinstitute/vercel-deploy-2
Browse files Browse the repository at this point in the history
Add Vercel deployment workflow
  • Loading branch information
magland authored Jul 1, 2024
2 parents 8956d02 + eb4c96f commit 5961ba6
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/vercel_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Vercel deploy

on:
push:
branches:
- main
- vercel-deploy-2 # for initial test
# manual trigger
workflow_dispatch:

jobs:
vercel-deploy:
name: Vercel deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
name: Install Vercel CLI
run: npm install --global vercel@latest
-
name: Create .vercel/project.json
run: |
cd gui
mkdir -p .vercel
echo '{"projectId":"${{ secrets.VERCEL_PROJECT_ID }}", "orgId":"${{ secrets.VERCEL_ORG_ID }}"}' > .vercel/project.json
-
name: Pull Vercel Environment Information
run: |
cd gui
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
-
name: Build Project Artifacts
run: |
cd gui
vercel --prod --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit 5961ba6

Please sign in to comment.