Skip to content

Commit

Permalink
Merge pull request #47 from jmhbnz/main
Browse files Browse the repository at this point in the history
Remove nextjs static site flag for configure pages action.
  • Loading branch information
tnscorcoran authored Jul 1, 2024
2 parents edbfc69 + 4b80aa9 commit 89925a9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"

- name: Setup pages
uses: actions/configure-pages@v5
with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
static_site_generator: next

- name: Restore cache
uses: actions/cache@v4
with:
Expand All @@ -47,12 +46,16 @@ jobs:
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: npm install

- name: Build with next.js
run: npm run build

- name: nojekyll
run: touch ./out/.nojekyll

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 89925a9

Please sign in to comment.