Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions-pages

Unit test

Action generates Hugo production and preview pages, then deploys to Cloudflare Workers.

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-pages/.github/workflows/deploy.yaml@v1
    with:
      cloudflare-project: NAME

    secrets:
      CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
      CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

If no existing Cloudflare Workers project is specified, action will build without deploy.

Authentication is stored in repository secrets. Further information can be found in Cloudflare Docs.

Specify Hugo version

Recommended. Overrides action default, and prevents unexpected changes.

uses: Anthrocon/actions-pages/.github/workflows/deploy.yaml@v1
with:
  hugo-version: 0.164.0

Disable cache

By default, action caches Hugo package, build cache, and resources. Cache can be disabled for testing.

uses: Anthrocon/actions-pages/.github/workflows/deploy.yaml@v1
with:
  cache: false

License

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

About

Generate and deploy Hugo pages to Cloudflare Workers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages