Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/build_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,28 @@ name: Construir el sitio con Nikola
on:
pull_request:
branches: [ master ]
paths:
- conf.py
- pages/**
- themes/**
- plugins/**
- images/**

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_freeze.txt
pip install -r requirements.txt
- name: Buildear con Nikola
run: |
nikola build
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Construir y publicar el sitio con Nikola

on:
push:
branches: [ master ]
paths:
- conf.py
- pages/**
- themes/**
- plugins/**
- images/**

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Buildear con Nikola
run: |
nikola build
- name: Publicar pagina a GH Pages
run: |
nikola github_deploy
8 changes: 4 additions & 4 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
# in the default language will be shown instead.

# What is the default language?
DEFAULT_LANG = "en"
DEFAULT_LANG = "es"

# What other languages do you have?
# The format is {"translationcode" : "path/to/translation" }
Expand Down Expand Up @@ -635,15 +635,15 @@
# For more details, read the manual:
# https://getnikola.com/handbook.html#deploying-to-github
# You will need to configure the deployment branch on GitHub.
GITHUB_SOURCE_BRANCH = 'src'
GITHUB_DEPLOY_BRANCH = 'master'
GITHUB_SOURCE_BRANCH = 'master'
GITHUB_DEPLOY_BRANCH = 'gh_pages'

# The name of the remote where you wish to push to, using github_deploy.
GITHUB_REMOTE_NAME = 'origin'

# Whether or not github_deploy should commit to the source branch automatically
# before deploying.
GITHUB_COMMIT_SOURCE = True
GITHUB_COMMIT_SOURCE = False

# Where the output site should be located
# If you don't use an absolute path, it will be considered as relative
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nikola==8.3.1
nikola[extras]==8.3.1
flask==2.0.1
sentry-sdk[flask]