Action generates a Hugo site from main
branch, then deploys it to GitHub Pages.
Intended for Anthrocon internal use, however may be useful elsewhere.
Create a workflow in .github/workflows
with:
on:
push:
jobs:
call:
uses: Anthrocon/actions-deploy/.github/workflows/deploy.yaml@main
Recommended. Overrides action default, and prevents unexpected changes.
uses: Anthrocon/actions-deploy/.github/workflows/deploy.yaml@main
with:
hugo-version: '0.131.0'
Action reads base URL from GitHub Pages. Scheme can be overridden to HTTPS.
uses: Anthrocon/actions-deploy/.github/workflows/deploy.yaml@main
with:
enforce-https: true
By default, action caches Hugo package, build cache, and resources. Cache can be disabled for testing.
uses: Anthrocon/actions-deploy/.github/workflows/deploy.yaml@main
with:
cache: false
No license implied. All rights reserved copyright Anthrocon, Inc., 2023.