Closed sanskruti-shahu closed 2 months ago
Hey @janosdebugs , For these changes to be reflected correctly you need to change/add the build command as
go run releases_page/main.go
wherever this opentofu/get.opentofu.org is hosted on cloudflare. This ensures that the main.go
file is executed during the build stage, generating all necessary HTML pages.
I did same thing with my forked of opentofu/get.opentofu.org, (on my personal cloudflare acount) I added build command as go run releases_page/main.go
so I got the expected result.
Preview url: https://get-opentofu-org.pages.dev/
Hey @janosdebugs , I have implemented the changes you requested. Could you please review them again?
Hey @sanskruti-shahu please make sure that:
Please request a re-review once you have completed this for all code branches.
Hey @janosdebugs , According to me I have implemented the mentioned changes, Please let me know if there's still anything missing. Thanks.
@janosdebugs , Gentle reminder.
Note for my fellow reviewer: this code now generates the content, but we will still need to add a GitHub Actions integration. I would recommend merging into a feature branch and work from there.
Objective
The objective of this PR is to introduce a statically generated releases page for the opentofu.
Changes
main.go
file andREADME.md
.main.go
file is responsible for fetching release information from the GitHub API and generating all required HTML pages when executed.README.md
file to provide clarity on the functionality of themain.go
file.Continuation of #16