Skip to content

Commit 3948272

Browse files
committed
Agregar configuración de despliegue para GitHub Pages y actualizar la configuración de Astro
1 parent 43da74c commit 3948272

2 files changed

Lines changed: 44 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy orbit-ui
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: true
15+
16+
jobs:
17+
deploy:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Build
32+
run: npm run build
33+
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v3
36+
with:
37+
path: ./dist
38+
39+
- name: Deploy to GitHub Pages
40+
uses: actions/deploy-pages@v4

astro.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ import tailwindcss from '@tailwindcss/vite';
77
export default defineConfig({
88
vite: {
99
plugins: [tailwindcss()]
10-
}
10+
},
11+
site: 'https://HC-ONLINE.github.io',
12+
base: '/ORBIT-UI',
13+
output: 'static', // GitHub Pages solo soporta sitios estáticos
1114
});

0 commit comments

Comments
 (0)