Skip to content

Allow CI to push file deletions (fixes #945) #976

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

Merged
merged 1 commit into from
May 2, 2022

Conversation

17cupsofcoffee
Copy link
Collaborator

As mentioned on #945, there's an upstream issue with the CI action we use to publish to GitHub Pages where if keep_history is set to true, files will never be deleted from the master branch, even if they're no longer present in Zola's output. The default is false, which effectively force pushes to master every time, meaning that it will always reflect exactly what was generated by the most recent Zola run.

Given that we never actually utilize the history on the master branch (e.g. if we do a revert, we generally just revert on source and let the site republish), I don't think there's much value to keeping the history around? I think it would be worth switching back to the default here.

Copy link
Member

@ozkriff ozkriff left a comment

Choose a reason for hiding this comment

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

Quoting from #945:

Originally, I enabled keep_history so it'd be easier to double-check the actual changes in Zola's output (I had a couple of issues with my own blog and early Zola). But it seems like Zola has been behaving well for quite some time now, so I don't mind disabling keep_history.

@17cupsofcoffee 17cupsofcoffee merged commit cc2bd00 into source May 2, 2022
@17cupsofcoffee 17cupsofcoffee deleted the 17cupsofcoffee-output-cleanup branch May 2, 2022 10:10
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