diff --git a/.github/workflows/build_site.yml b/.github/workflows/build_site.yml index 8455e6888..7887cb019 100644 --- a/.github/workflows/build_site.yml +++ b/.github/workflows/build_site.yml @@ -3,6 +3,12 @@ name: Construir el sitio con Nikola on: pull_request: branches: [ master ] + paths: + - conf.py + - pages/** + - themes/** + - plugins/** + - images/** jobs: build: @@ -10,15 +16,15 @@ jobs: 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 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..5f9ef2a5c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file diff --git a/conf.py b/conf.py index 55bb9715a..498299d27 100644 --- a/conf.py +++ b/conf.py @@ -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" } @@ -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 diff --git a/requirements.txt b/requirements.txt index 8c2f95054..d9d033d5d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -nikola==8.3.1 +nikola[extras]==8.3.1 flask==2.0.1 sentry-sdk[flask] \ No newline at end of file