Skip to content

Commit 6476857

Browse files
committed
chore: 🤖 configuration for github page
1 parent fabe077 commit 6476857

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
concurrency:
2+
group: "pages"
3+
cancel-in-progress: true
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Setup Node
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: "22"
15+
cache: 'npm'
16+
17+
- name: Install dependencies
18+
run: npm ci
19+
20+
- name: Build with Next.js
21+
run: npm run build
22+
23+
- name: Upload artifact
24+
uses: actions/upload-pages-artifact@v3
25+
with:
26+
path: ./out
27+
28+
deploy:
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
runs-on: ubuntu-latest
33+
needs: build
34+
steps:
35+
- name: Deploy to GitHub Pages
36+
id: deployment
37+
uses: actions/deploy-pages@v4

‎next.config.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
output: 'export', // Importante para generar archivos estáticos
5+
basePath: 'https://github.com/visual-ds/seminar-visualds/', // Reemplaza con el nombre de tu repositorio
6+
images: {
7+
unoptimized: true, // Necesario para exportación estática
8+
}
59
};
610

711
export default nextConfig;

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"deploy": "next build && touch out/.nojekyll"
1011
},
1112
"dependencies": {
1213
"@radix-ui/react-collapsible": "^1.1.3",

0 commit comments

Comments
 (0)