Skip to content
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

Reduce the size of the gh-pages branch #4959

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Reduce the size of the gh-pages branch #4959

merged 1 commit into from
Jan 22, 2025

Conversation

richardTowers
Copy link
Contributor

https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-force-orphan-force_orphan

We can set the force_orphan: true option. This allows you to make your
publish branch with only the latest commit.

On its own, this won't remove the gh-pages history, but once the branch is pointing at an orphaned commit we should be able to remove the references to the old gh-pages commits and garbage collect them.

https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-force-orphan-force_orphan

> We can set the force_orphan: true option. This allows you to make your
> publish branch with only the latest commit.

On its own, this won't remove the gh-pages history, but once the branch
is pointing at an orphaned commit we should be able to remove the
references to the old gh-pages commits and garbage collect them.
@richardTowers richardTowers merged commit 3b334e1 into main Jan 22, 2025
5 checks passed
@richardTowers richardTowers deleted the force-orphan branch January 22, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants