-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 976 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy to GitHub Pages
on:
push:
branches:
- main # Escucha cambios en la rama principal
jobs:
build-and-deploy:
runs-on: ubuntu-latest # Elige un entorno Ubuntu
steps:
# Paso 1: Clonar el repositorio
- name: Checkout Code
uses: actions/checkout@v3
# Paso 2: Configurar Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12 # Elige la versión de Python
# Paso 3: Instalar dependencias de Python
- name: Install Dependencies
run: |
pip install -r src/requirements.txt
# Paso 4: Generar el sitio
- name: Generate Site
run: |
python src/sitebuilder.py
cp CNAME dist/
# Paso 5: Desplegar a GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist # Carpeta donde está el sitio generado