Anthrocon / actions-deploy

Generate and deploy Hugo site to GitHub Pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

actions-deploy

Deploy Hugo site

Action generates a Hugo site from main branch, then deploys it to GitHub Pages.

Scope

Intended for Anthrocon internal use, however may be useful elsewhere.

Usage

Create a workflow in .github/workflows with:

on:
  push:

jobs:
  call:
    uses: Anthrocon/actions-deploy/.github/workflows/deploy.yaml@main

Specify Hugo version

Recommended. Overrides action default, and prevents unexpected changes.

uses: Anthrocon/actions-deploy/.github/workflows/deploy.yaml@main
with:
  hugo-version: '0.131.0'

Rewrite HTTPS

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

Disable cache

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

License

No license implied. All rights reserved copyright Anthrocon, Inc., 2023.

About

Generate and deploy Hugo site to GitHub Pages


Languages

Language:HTML 100.0%