Skip to content

Commit

Permalink
Refactor workflow - πŸš€ it's run success fully
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahdi-Hazrati committed Feb 2, 2024
1 parent 05196d8 commit c48e1f9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/nextjs.yml β†’ .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down

0 comments on commit c48e1f9

Please sign in to comment.