Skip to content

Make documentation build only on releases #65

@houfu

Description

@houfu

What & Why

Currently, our documentation builds on every code change. This means it might show unreleased features. We want docs to only update when we publish a new release, so they always match what users have installed.

What You'll Do

Edit the GitHub Actions workflow file that builds documentation (likely in .github/workflows/).

Change the trigger from:

on:
  push:
    branches: [main]

To:

on:
  release:
    types: [published]

Step-by-Step

  1. Find the workflow file (probably named something like docs.yml or documentation.yml in .github/workflows/)
  2. Locate the on: section at the top
  3. Replace it with the release trigger shown above
  4. Commit and push the change
  5. The workflow won't run immediately anymore - it will only run when a release is published

How to Test

  1. Publish a test release (or draft release) on GitHub
  2. Check the "Actions" tab to see if the workflow ran
  3. Verify the docs were updated

Success Looks Like

  • ✅ Workflow no longer runs on regular commits
  • ✅ Workflow runs when a release is published
  • ✅ Documentation updates after release

Resources

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions