From c48e1f931f320fe56adc5e67d805537e28b34fba Mon Sep 17 00:00:00 2001 From: Mahdi Hazrati Date: Sat, 3 Feb 2024 00:49:24 +0330 Subject: [PATCH] =?UTF-8?q?Refactor=20workflow=20-=20=F0=9F=9A=80=20it's?= =?UTF-8?q?=20run=20success=20fully?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/{nextjs.yml => deploy.yml} | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) rename .github/workflows/{nextjs.yml => deploy.yml} (74%) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/deploy.yml similarity index 74% rename from .github/workflows/nextjs.yml rename to .github/workflows/deploy.yml index 84b0391..15183f3 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,8 @@ -# Sample workflow for building and deploying a Next.js site to GitHub Pages - -name: Deploy Next.js site to Pages - +name: Deploy Next JS Application 🚀 +# Next Production Workflow for deploy app to github page on: push: - branches: ["master"] # Make sure this is your default branch + branches: ["master"] workflow_dispatch: permissions: @@ -26,13 +24,13 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20" # Use the Node.js version that matches your project + node-version: "20" cache: 'npm' - name: Install dependencies run: npm ci - - name: Build Next.js site + - name: Build Next.js App run: npm run build - name: Upload artifact for deployment