-
Notifications
You must be signed in to change notification settings - Fork 76
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
Remove the static-websites
GitHub action
#597
Comments
Do we even need the action anymore or could we replace it by hosting static websites on GitHub Actions? I feel like that would give users the most flexibility and remove one more piece of "self-managed" infrastructure from our stack. |
we are already using github pages |
Oh, my bad. I thought this was the action that uploaded static sites to S3 and serve them from there. If we're already using GitHub Pages, I actually think there is even less of a reason to maintain this action. None of the sites that we have deployed has anywhere near the traffic to need a CDN. Might be a nice opportunity to clean up both some code and some AWS resources. |
If there's no need for the CDN, we could remove the "invalidate" line from this action and delete the CDNs from terraform, yes 👍 Worth discussing this in zulip first though 👍 |
After our discussion, we agreed to delete this action and replace where it's used with official GitHub Actions |
static-websites
GitHub action
I'll take a stab at this (at EuroRust impl room), starting with the async-book repo |
We maintain a GitHub Action called
static-websites
that uploads a static website to GitHub Pages and (optionally) invalidates the cache of a CloudFront distribution. This action is used a few times in therust-lang
organization, but only rust-lang/thanks makes use of the cache invalidations.Since GitHub now supports and encourages uploading static websites as artifacts, we want to refactor the workflows that use the
static-websites
action and replace it. Once that has been done, we can remove the action from this repository.For each workflow that uses this action, we need to:
static-websites
with actions/upload-github-pages-artifact to upload the pre-built archivedeploy
job as per the documentation for actions/deploy-github-pages-siteRepositories
The following repositories need to be updated:
The rust-lang/thanks repository is slightly different, since that uses a CloudFront distribution. Replacing the
static-websites
action in this repository will require more steps and help from an administrator.CNAME
file forthanks.rust-lang.org
(see Managing a custom domain for your GitHub Pages site)static-websites
action as per the instructions aboveResources
For maintainers
The text was updated successfully, but these errors were encountered: