Skip to content

Construir la web con HUGO #110

Construir la web con HUGO

Construir la web con HUGO #110

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Construir la web con HUGO
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "source" branch
push:
branches: [ "source" ]
pull_request:
branches: [ "source" ]
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
runs-on: ubuntu-20.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo dependencies for our site
run: sudo apt-get update && sudo apt-get -y install python-docutils python-pygments
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build
# run: hugo --gc --config=./config.toml --verbose --minify
run: hugo --verbose --log -F --config=./config.toml
#- name: Build index
# run: hugo --gc --config=./config.toml --verbose --minify
# run: hugo new index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
#if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: master
publish_dir: ./ # default: public
# enable_jekyll: true
cname: www.lariojatech.org