Skip to content

Create hugo.yml

Create hugo.yml #3

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3.0.0
with:
hugo-version: latest
extended: true
- name: Build local
run: hugo --minify --gc --destination ./public --source ./ --themesDir ./themes --baseURL https://jcuenod.github.io/pabnlp/
- name: Deploy to GitHub Pages
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public