Skip to content

Commit

Permalink
🚑 Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDanniCraft committed Jul 7, 2024
1 parent 4857ada commit 3f55493
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 3f55493

Please sign in to comment.