Skip to content

Commit

Permalink
feat: ✨ add NEXT_PUBLIC_SITE_URL inputs to Nextjs build
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Oct 28, 2024
1 parent a184178 commit 2fb025b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/reusable-nextjs-build-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
required: false
type: string
default: .
NEXT_PUBLIC_SITE_URL:
required: false
type: string

jobs:
build:
Expand All @@ -16,7 +19,7 @@ jobs:
run:
working-directory: ${{ inputs.working-directory }}
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -28,9 +31,10 @@ jobs:

- name: Build with Next.js
run: pnpm run build
env:
NEXT_PUBLIC_SITE_URL: ${{ inputs.NEXT_PUBLIC_SITE_URL || '' }}

- name: Upload artifact
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out

0 comments on commit 2fb025b

Please sign in to comment.