Skip to content

Deploy a multi-config hugo based website to a Google Cloud Storage bucket

Notifications You must be signed in to change notification settings

fchyla/deploy-hugo-to-gcs

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Description

Composite action used to deploy a hugo blog to gcs

Usage

The action works with the config structure used by hugo eg.

config-tree

See https://gohugo.io/getting-started/configuration/ for more information about hugo configuration

Inputs

  • deployment-target:
    • description: "target of hugo deploy command, [[deployment.targets]].name"
    • required: true
  • deployment-environment:
    • description: "build environment, which hugo configuration in config/ to use"
    • required: true
  • gcp-project-id:
    • description: "google cloud project id, used to generate application credentials during runtime"
    • required: true
  • gcp-service-account-key:
    • description: "service account key used for uploading to gcs"
    • required: true
  • gcp-create-credentials:
    • description: "export default credentials, if used you must run actions/checkout@v3 before this action"
    • value: true/false
    • required: true