Skip to content

Commit

Permalink
💚 Deploy Next.js site to Pages ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Sep 2, 2024
1 parent a7b8643 commit 6a30f57
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ concurrency:
cancel-in-progress: false

jobs:
setup:
uses: zhumeisongsong/shared-actions/.github/workflows/pnpm-setup.yml@main

# Build job
build:
name: Build
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
fetch-depth: 0
- name: Setup Pages
uses: actions/configure-pages@v5
with:
Expand All @@ -43,8 +46,6 @@ jobs:
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next
- name: Install dependencies
run: pnpm install
- name: Build with Next.js
run: pnpm next build
- name: Upload artifact
Expand Down

0 comments on commit 6a30f57

Please sign in to comment.