Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Nov 14, 2023
1 parent 82a0f73 commit 8c8334d
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 49 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/preview-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@ jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
uses: actions/checkout@v4
- name: Generate slug
uses: rlespinasse/github-slug-action@v4
- uses: oven-sh/setup-bun@v1
- name: Install Vercel CLI
run: bun i --global vercel@latest
with:
bun-version: "1.0.11"
- name: Install dependencies
run: bun i
run: bun install --frozen-lockfile
- name: 📤 Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
run: bun vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: 🏗 Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
run: bun vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: |
vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` ${{ env.GITHUB_REF_SLUG }}.app.midday.ai
bun vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
bun vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` ${{ env.GITHUB_REF_SLUG }}.app.midday.ai
18 changes: 8 additions & 10 deletions .github/workflows/preview-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@ jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
uses: actions/checkout@v4
- name: Generate slug
uses: rlespinasse/github-slug-action@v4
- uses: oven-sh/setup-bun@v1
- name: Install Vercel CLI
run: bun i --global vercel@latest
with:
bun-version: "1.0.11"
- name: Install dependencies
run: bun i
run: bun install --frozen-lockfile
- name: 📤 Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
run: bun vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: 🏗 Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
run: bun vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: |
vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` ${{ env.GITHUB_REF_SLUG }}.midday.ai
bun vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
bun vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` ${{ env.GITHUB_REF_SLUG }}.midday.ai
24 changes: 10 additions & 14 deletions .github/workflows/production-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,19 @@ jobs:
deploy-production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install Vercel CLI
run: bun i --global vercel@latest
- name: 📤 Pull Vercel Environment Information
run: vercel env pull .env --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
with:
bun-version: "1.0.11"
- name: Install dependencies
run: bun i
- name: Build
run: bun run build
run: bun install --frozen-lockfile
- name: 📤 Pull Vercel Environment Information
run: bun vercel env pull .env --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: 📤 Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
run: bun vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: 🏗 Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
run: bun vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: |
vercel deploy --prebuilt --prod --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` app.midday.ai
bun vercel deploy --prebuilt --prod --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
bun vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` app.midday.ai
24 changes: 10 additions & 14 deletions .github/workflows/production-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,19 @@ jobs:
deploy-production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install Vercel CLI
run: bun i --global vercel@latest
- name: 📤 Pull Vercel Environment Information
run: vercel env pull .env --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
with:
bun-version: "1.0.11"
- name: Install dependencies
run: bun i
- name: Build
run: bun run build
run: bun install --frozen-lockfile
- name: 📤 Pull Vercel Environment Information
run: bun vercel env pull .env --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: 📤 Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
run: bun vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: 🏗 Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
run: bun vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: |
vercel deploy --prebuilt --prod --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` midday.ai
bun vercel deploy --prebuilt --prod --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
bun vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` midday.ai
1 change: 1 addition & 0 deletions apps/dashboard/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
p
2 changes: 1 addition & 1 deletion apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"scripts": {
"build": "next build",
"build": "NODE_ENV=production next build",
"clean": "git clean -xdf .next .turbo node_modules",
"jobs": "bunx @trigger.dev/cli@latest dev --port 3001",
"dev": "next dev -p 3001",
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
"@manypkg/cli": "^0.21.0",
"turbo": "^1.10.16",
"typescript": "^5.2.2"
},
"devDependencies": {
"vercel": "^32.5.3"
}
}

0 comments on commit 8c8334d

Please sign in to comment.