pier-oliviert / phonebook

Manage DNS Records with Kubernetes
https://pier-oliviert.github.io/phonebook/
Apache License 2.0
61 stars 1 forks source link

Hugo doesn't include new helm release when created. #18

Open pier-oliviert opened 1 month ago

pier-oliviert commented 1 month ago

When a new release is cut, the github action that generates the documentation won't include the latest changes, I need to manually create a commit in the gh-pages to force hugo to recompile with the new helm charts.

User experienced the issue with #12.

Posssibly need to reorder and reorganize some of the actions so it is integrated in a more robust way.

mydoomfr commented 1 month ago

We encountered a similar issue in another project. We didn't want to order the GitHub Actions for the Helm release after the documentation because it didn't make sense to depend on the Helm release from the documentation release.

Here the workaround we used:

Publish the documentation on GitHub Pages into a complete subfolder, such as "/docs," to prevent the Helm "index.yaml" file from being deleted. Then, manually commit an "index.html" file at the root level with HTML redirect:

<meta http-equiv="refresh" content="0; url=https://pier-oliviert.github.io/phonebook/docs/index.html">

Tree

/docs
index.html
index.yaml

Perhaps you'll find a better solution!