Skip to content

Commit

Permalink
Merge pull request #4 from VishwamAI/vercel-integration-workflow
Browse files Browse the repository at this point in the history
Add Vercel Deployment Workflow
  • Loading branch information
kasinadhsarma authored Aug 9, 2024
2 parents d89ec78 + 5ffd93c commit 4000113
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/vercel-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Vercel Deployment

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Run tests
run: npm test

- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: ./
52 changes: 52 additions & 0 deletions WORKFLOW.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# Job-City Project Workflow

## Project Overview
Job-City is an education commerce platform built using Next.js 14, Tailwind CSS, Framer Motion, Monaco Editor, and LLaMA 3.1. It features a dashboard, aptitude reasoning, examination system, coding modules, AI research, and AI security features.

## Development Setup
1. Clone the repository:
```
git clone https://github.com/VishwamAI/jobcity.git
cd jobcity
```
2. Install dependencies:
```
npm install
```
3. Start the development server:
```
npm run dev
```

## Committing Changes
1. Create a new branch:
```
git checkout -b <branch-name>
```
2. Make your changes and stage them:
```
git add .
```
3. Commit your changes:
```
git commit -m "Your commit message"
```
4. Push your changes:
```
git push origin <branch-name>
```

## Vercel Deployment
1. Link your project to Vercel:
```
vercel link
```
2. Deploy your project:
```
vercel --prod
```
3. Monitor the deployment status on the Vercel dashboard.

## Additional Notes
- Ensure all environment variables are properly set in Vercel.
- Regularly update dependencies to maintain security and performance.
- Use Vercel's preview deployments for testing before merging to main.

## 1. Project Setup and Initial Configuration

1.1. Set up the development environment
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"export": "next build && next export"
"export": "next build && next export",
"test": "echo \"No tests specified\" && exit 0"
}
}

0 comments on commit 4000113

Please sign in to comment.