From 18473f230ec147dfae441de28c63f3c30e1e10ea Mon Sep 17 00:00:00 2001 From: Saksham Gera <135414273+saksham-gera@users.noreply.github.com> Date: Sun, 23 Mar 2025 02:54:07 +0530 Subject: [PATCH] Update buildAndDeploy.yml --- .github/workflows/buildAndDeploy.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/buildAndDeploy.yml b/.github/workflows/buildAndDeploy.yml index 06bd855..e2ff2e2 100644 --- a/.github/workflows/buildAndDeploy.yml +++ b/.github/workflows/buildAndDeploy.yml @@ -1,6 +1,7 @@ name: Build and Deploy on: workflow_dispatch + jobs: build-and-deploy: runs-on: ubuntu-latest @@ -9,18 +10,24 @@ jobs: node-version: [18.x] steps: - name: Checkout 🛎️ - uses: actions/checkout@v2.3.1 + uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + + - name: Clear npm cache + run: npm cache clean --force + - name: Install and Build 🔧 run: | + export NODE_OPTIONS=--openssl-legacy-provider npm ci npm run build - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@4.1.3 + uses: JamesIves/github-pages-deploy-action@v4 with: - branch: gh-pages # The branch the action should deploy to. - folder: build # The folder the action should deploy. + branch: gh-pages + folder: build