Skip to content

Adjust Github Pages Deploy action to not keep history for the gh-pages branch #993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bpkroth
Copy link
Contributor

@bpkroth bpkroth commented Jul 17, 2025

Pull Request

Title

Adjust Github Pages Deploy action to not keep history for the gh-pages branch


Description

Only include a single commit in the gh-pages branch history, else the repo explodes in size over time.

See Also: https://github.com/JamesIves/github-pages-deploy-action

Once this is in our repo should reduce from ~450MB to ~25MB


Type of Change

  • 🛠️ Bug fix
  • 📝 Documentation update

@Copilot Copilot AI review requested due to automatic review settings July 17, 2025 18:20
@bpkroth bpkroth requested a review from a team as a code owner July 17, 2025 18:20
Copy link
Contributor

@Copilot 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 prevents repository size bloat by configuring the GitHub Pages deployment to maintain only a single commit in the gh-pages branch history instead of accumulating all deployment commits over time.

  • Adds single-commit: true parameter to the GitHub Pages deploy action configuration

@bpkroth bpkroth added ready for review Ready for review ci labels Jul 17, 2025
@bpkroth bpkroth enabled auto-merge (squash) July 17, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci ready for review Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant