Skip to content

Commit

Permalink
deploy v2
Browse files Browse the repository at this point in the history
  • Loading branch information
okedeji committed May 15, 2024
1 parent 6851b82 commit 8f2d33e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy-v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy to Netlify

on:
push:
branches:
- major_upgrade

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install Yarn
run: npm install -g yarn

- name: Install dependencies
run: yarn install

- name: Build the project
run: yarn run build

- name: Install Netlify CLI
run: npm install -g netlify-cli

- name: Deploy to Netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_V2 }}
run: netlify deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --prod --dir=.next --functions=netlify/functions

0 comments on commit 8f2d33e

Please sign in to comment.