diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 43596ab..b5e906c 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -75,6 +75,11 @@ jobs: run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - name: Build with Next.js 🏗️ run: ${{ steps.detect-package-manager.outputs.runner }} next build + - name: Store build artifacts 📂 + uses: actions/upload-artifact@v4 + with: + name: nextjs-build + path: out # Deployment job deploy: @@ -84,6 +89,13 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Download build artifacts 📂 + uses: actions/download-artifact@v4 + with: + name: nextjs-build - name: Deploy to GitHub Pages 🚀 uses: crazy-max/ghaction-github-pages@v4 with: