Closed utterances-bot closed 6 months ago
Thanks for the post! I was just looking into how to implement this myself and found your post which cleared some things up for me. The only thing I would recommend is, instead of using the 'Personal Access Token' to use 'Deploy keys' of the public repository. It's a bit more secure in case the secret token leaks--the token is only for the public repository instead of your entire GitHub account.
@sgloutnikov - Glad to hear the post helped you out! Also, thank you for the recommendation, this is an awesome suggestion! I'm definitely going to implement this for my blog. Much appreciated! Have a happy holiday season!
Using GitHub Actions to Publish Hugo Site From Private to Public Repo - Robert Terakedis
Keeping ideas and drafts private until they're fully baked
https://blog.euc-rt.me/post/github-actions-publish-private-hugo-repo-to-public-pages-site/