[X64] implementing all necessary instructions for conditions #22
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: Deploy Website | |
on: | |
push: | |
branches: | |
- main # Trigger the action on push to the main branch | |
pull_request: | |
branches: | |
- main # Trigger the action on pull requests to the main branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' # Specify the Node.js version | |
- name: Install dependencies | |
run: | | |
cd web | |
npm install | |
- name: Build Next.js app | |
run: | | |
cd web | |
npm run build | |
- name: Deploy to Vercel | |
run: | | |
cd web | |
npm install -g vercel | |
vercel --prod --token=${{ secrets.VERCEL_TOKEN }} |