Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(github): Vercel Preview Deployment #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Vercel Preview Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches-ignore:
- master
jobs:
Deploy-Preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
working-directory: ./apps/docs
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
working-directory: ./apps/docs
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
working-directory: ./apps/docs
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Vercel Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- master
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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 --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules/
.turbo
.yarn
.yarn
.vercel
.next
1 change: 0 additions & 1 deletion apps/web/.next/BUILD_ID

This file was deleted.

33 changes: 0 additions & 33 deletions apps/web/.next/build-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/cache/.tsbuildinfo

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/cache/eslint/.cache_1upaaxw

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/cache/next-server.js.nft.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion apps/web/.next/export-marker.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/images-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/next-server.js.nft.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/package.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/prerender-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/react-loadable-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/required-server-files.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/routes-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/server/chunks/font-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/server/font-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/server/middleware-build-manifest.js

This file was deleted.

6 changes: 0 additions & 6 deletions apps/web/.next/server/middleware-manifest.json

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/server/next-font-manifest.js

This file was deleted.

6 changes: 0 additions & 6 deletions apps/web/.next/server/next-font-manifest.json

This file was deleted.

7 changes: 0 additions & 7 deletions apps/web/.next/server/pages-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/server/pages/404.html

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/server/pages/500.html

This file was deleted.

150 changes: 0 additions & 150 deletions apps/web/.next/server/pages/_app.js

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.next/server/pages/_app.js.nft.json

This file was deleted.

Loading