Skip to content

Recommendations on removing versions from a GHA published site #213

Answered by jimporter
swcurran asked this question in Q&A
Discussion options

You must be logged in to vote

For one-off cases, you can just do it all locally via mike delete, and push back upstream.

For clearing RCs in general, why not just write a small script that runs in your CI when you tag the final version? You can use mike list --json to get all the versions in JSON format (this is just your versions.json file on the gh-pages branch), and then loop through them to pick out any versions to be deleted. Then call mike delete <each-version>.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by swcurran
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jimporter
Comment options

@swcurran
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #212 on March 11, 2024 17:21.