Skip to content

Remove the static-websites GitHub action #597

@marcoieni

Description

@marcoieni

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:

  1. Replace the usage of static-websites with actions/upload-github-pages-artifact to upload the pre-built archive
  2. 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.

  • Add a CNAME file for thanks.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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions