Skip to content

[CI] Fix Hugo preview environment for PR deployments#1024

Merged
leecalcote merged 2 commits into
masterfrom
copilot/fix-hugo-environment-configuration
May 11, 2026
Merged

[CI] Fix Hugo preview environment for PR deployments#1024
leecalcote merged 2 commits into
masterfrom
copilot/fix-hugo-environment-configuration

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 10, 2026

Notes for Reviewers

This PR fixes #

  • Switches the pull request preview workflow to npm run build:preview, so preview deployments use the repository's Hugo preview configuration (-e dev -DFE) instead of a production-style build.
  • Preserves the preview-only HUGO_PREVIEW behavior and robots.txt blocking for deployed PR previews.
  • Removes accidentally generated public-preview/ artifacts from this branch.

Signed commits

  • Yes, I signed my commits.

Copilot AI and others added 2 commits May 10, 2026 00:51
Agent-Logs-Url: https://github.com/layer5io/docs/sessions/701563ca-c96f-420e-909e-20db601547da

Co-authored-by: hortison <160366376+hortison@users.noreply.github.com>
Agent-Logs-Url: https://github.com/layer5io/docs/sessions/701563ca-c96f-420e-909e-20db601547da

Co-authored-by: hortison <160366376+hortison@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 10, 2026

PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2026-05-11 16:27 UTC

@leecalcote leecalcote marked this pull request as ready for review May 11, 2026 16:25
Copilot AI review requested due to automatic review settings May 11, 2026 16:25
@leecalcote leecalcote merged commit 65bc75b into master May 11, 2026
4 checks passed
@leecalcote leecalcote deleted the copilot/fix-hugo-environment-configuration branch May 11, 2026 16:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the PR preview GitHub Actions workflow to build previews using the repo’s Hugo “dev/preview” configuration (instead of a production-style hugo invocation), while keeping preview-only indexing protections in place.

Changes:

  • Switch PR preview builds from direct hugo invocation to npm run build:preview (dev env with -DFE behavior).
  • Keep PR preview-specific behavior: HUGO_PREVIEW=true and writing a blocking public/robots.txt.
  • Minor YAML formatting cleanup (quoting and whitespace in the PR comment message).

Comment on lines +64 to +66
run:
'[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci ||
true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants