Skip to content

Anthrocon/actions-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages