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:
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.
Resources
For maintainers
We maintain a GitHub Action called
static-websitesthat 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-langorganization, 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-websitesaction 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-websiteswith actions/upload-github-pages-artifact to upload the pre-built archivedeployjob 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-websitesaction in this repository will require more steps and help from an administrator.CNAMEfile forthanks.rust-lang.org(see Managing a custom domain for your GitHub Pages site)static-websitesaction as per the instructions aboveResources
For maintainers