Hugo Publish to Netlify
The hugo-publish-netlify workflow publishes a built Hugo site artifact to Netlify. This pipeline uses the Netlify CLI to upload the site and create a new deployment. You must disable automatic branch deployments in Netlify for this system to work.
Table of Contents
Responsibilities
- Download the Hugo build artifact from the upstream build run.
- Deploy the artifact to the configured Netlify site using the Netlify CLI.
Inputs
artifact-name: Name of the build artifact to download.run-id: Build workflow run ID to download the artifact from.netlify-site-id: Netlify site ID.netlify-branch: Branch name reported to Netlify.netlify-dir: Directory to deploy to Netlify.runner-image: Runner label or image to use.
Secrets
netlify-auth-token: Netlify authentication token.