Skip to content

Commit

Permalink
Update nextjs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o authored Jan 18, 2025
1 parent c4fb528 commit f12f2a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
on:
push:
branches:
- main # Replace with the branch youre deploying from
- main # Replace with the branch you're deploying from

jobs:
deploy:
Expand All @@ -14,11 +14,14 @@ jobs:
uses: actions/checkout@v3

- name: Install Dependencies
run: npm install # Create the package-lock.json file
run: npm ci # Make sure package-lock.json exists

- name: Build Static Files
run: npm run build

- name: List the contents of build directory
run: ls -alh ./out # Optional: Check if the "out" directory exists after build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
Expand Down

0 comments on commit f12f2a4

Please sign in to comment.