The static-websites
action deploys a directory to GitHub pages. There is no
stability guarantee for this action, since it's supposed to only be used in
infra managed by us.
To use the action add this to your workflow:
- uses: rust-lang/simpleinfra/github-actions/static-websites@master
with:
deploy_dir: path/to/output
github_token: "${{ secrets.github_token }}"
if: github.ref == 'refs/heads/master'
If you also want to invalidate a Cloudfront distribution after a deploy you need to use:
- uses: rust-lang/simpleinfra/github-actions/static-websites@master
with:
deploy_dir: path/to/output
cloudfront_distribution: AAAAAAAAAA
github_token: "${{ secrets.github_token }}"
aws_access_key_id: "${{ secrets.aws_access_key_id }}"
aws_secret_access_key: "${{ secrets.aws_secret_access_key }}"
if: github.ref == 'refs/heads/master'