Skip to content

Commit

Permalink
vercel build magic (quicksilver-zone#1084)
Browse files Browse the repository at this point in the history
* vercel build magic

* Update .github/workflows/deployweb.yaml

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Joe Bowman and coderabbitai[bot] authored Jan 24, 2024
1 parent e9baead commit b646301
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/buildweb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
bun-version: latest # or specify a version

- name: Install Dependencies
run: |
run: |
cd web-ui
bun install
bun install --frozen-lockfile
- name: Build Project
run: |
cd web-ui
cd web-ui
bun run build
22 changes: 22 additions & 0 deletions .github/workflows/deployweb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Production Tag Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
tags:
- 'fe/v*' # Push events to every tag not containing /

jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Vercel CLI
run: npm install --global vercel@^21.0.0 # Replace with the current major version
- 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 --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ web-ui/.vercel
# typescript
web-ui/*.tsbuildinfo
web-ui/next-env.d.ts
.vercel
7 changes: 7 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"git": {
"deploymentEnabled": {
"main": false
}
}
}

0 comments on commit b646301

Please sign in to comment.