From 3f5549384435d84beb4d1298ead75aa3da8987ef Mon Sep 17 00:00:00 2001 From: TheDanniCraft Date: Sun, 7 Jul 2024 18:56:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20deployment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/nextjs.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: