Skip to content

[CI] Add PR Preview Workflow for content-only site with Netlify #22

@ShashaankS

Description

@ShashaankS

Current Behavior

No deploy previews are generated when pull requests are opened or updated. Reviewers must check out the branch locally to view changes.

Related Issue : layer5io/exoscale-academy#27

Desired Behavior

A Netlify Deploy Preview should be automatically created for each PR, allowing reviewers to view live changes to the Hugo site directly from the PR.

Implementation

  • Set up a GitHub Actions workflow that triggers on pull_request events.
  • Use Netlify CLI or GitHub App integration to deploy a preview.
  • Post the preview URL as a comment or status check on the PR.

Acceptance Tests

  • Workflow triggers on new or updated PRs.
  • Netlify preview is deployed automatically.
  • Preview URL is accessible and linked in the PR.

Contributor Guide and Resources

Metadata

Metadata

Assignees

Labels

area/ciContinuous integration | Build and release

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions