Skip to content

Deploy Hugo site to GitHub Pages #6

Deploy Hugo site to GitHub Pages

Deploy Hugo site to GitHub Pages #6

Workflow file for this run

name: Deploy Hugo site to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.134.2'
extended: true
- name: Build Hugo site
run: hugo --source site
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.AGENT_TOKEN }}
publish_dir: ./site/public
publish_branch: gh-pages