update github workflow

This commit is contained in:
Kalidou Diagne
2024-04-12 11:53:45 +02:00
parent c6319308e2
commit 51adba6821
3 changed files with 27 additions and 8 deletions

View File

@@ -26,8 +26,17 @@ jobs:
- name: Build with Next.js 🏗️
run: npx next build
- name: Deploy to gh-pages branch
uses: JamesIves/github-pages-deploy-action@v4.4.3
- name: Upload artifact 📡
uses: actions/upload-pages-artifact@v3
with:
branch: gh-pages
folder: out
path: ./out
- name: Publish to GitHub Pages 🚀
id: deployment
uses: actions/deploy-pages@v4
#- name: Deploy to gh-pages branch
# uses: JamesIves/github-pages-deploy-action@v4.4.3
# with:
# branch: gh-pages
# folder: out

View File

@@ -32,8 +32,17 @@ jobs:
- name: Build with Next.js 🏗️
run: npx next build
- name: Deploy to gh-pages-dev branch
uses: JamesIves/github-pages-deploy-action@v4.4.3
- name: Upload artifact 📡
uses: actions/upload-pages-artifact@v3
with:
branch: gh-pages-dev
folder: out
path: ./out
- name: Publish to GitHub Pages 🚀
id: deployment
uses: actions/deploy-pages@v4
#- name: Deploy to gh-pages-dev branch
# uses: JamesIves/github-pages-deploy-action@v4.4.3
# with:
# branch: gh-pages-dev
# folder: out

View File

@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: "/landing-page",
output: 'export', // compatible with GitHub Pages
};