Skip to content

Update config file

Update config file #3

Workflow file for this run

name: Deploy Hugo Website
env:
WC_HUGO_VERSION: '0.125.7'
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.125.7'
extended: true
- name: Build Hugo site
env:
HUGO_ENVIRONMENT: production
run: |
hugo --minify --destination public
- name: Setup GitHub Pages
id: pages
uses: actions/configure-pages@v5
- name: Upload website files
uses: actions/upload-pages-artifact@v3
with:
path: public
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}