-
Notifications
You must be signed in to change notification settings - Fork 86
Description
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 the rust-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:
- Replace the usage of
static-websites
with actions/upload-github-pages-artifact to upload the pre-built archive - Add a new
deploy
job as per the documentation for actions/deploy-github-pages-site
Repositories
The following repositories need to be updated:
- rust-lang/async-book Migrate GitHub Pages deployment away from the static-websites action async-book#231
- rust-lang/polonius deploy book via official actions polonius#200
- rust-lang/rust-forge Use actions/deploy-pages to deploy the website rust-forge#868
- rust-lang/wg-async deploy book via official actions wg-async#343
- rust-lang/thanks: ci: deploy website using official GitHub Actions thanks#79
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.
- Add a
CNAME
file forthanks.rust-lang.org
(see Managing a custom domain for your GitHub Pages site) - As an admin, change the DNS record to point to GitHub Pages
- As an admin, remove the CloudFront distribution once it is no longer used
- Replace the
static-websites
action as per the instructions above
Resources
For maintainers
- evaluate if we should close infra-team (view)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status