feat: created backed for auth system #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD Pipeline | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Bun | |
run: | | |
curl -fsSL https://bun.sh/install | bash | |
export BUN_INSTALL="$HOME/.bun" | |
export PATH="$BUN_INSTALL/bin:$PATH" | |
- name: Install dependencies | |
run: bun install | |
- name: Build the project | |
run: bun build | |
- name: Deploy to Vercel | |
run: npx vercel --prod --token=$VERCEL_TOKEN | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} |