Skip to content

Update hugo.yml

Update hugo.yml #19

Workflow file for this run

name: Build and deploy
on:
push:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on:
group: Default
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build
run: |
hugo \
--minify
- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./public
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3