Description
Create a GitHub Actions workflow that deploys the static build output to S3 when changes are merged into main.
Scope
- Create deployment workflow
- Run deployment only on push to
main
- Build the static site
- Sync
out/ directory to S3
- Delete removed files from S3 using sync delete behavior
- Use GitHub secrets for deployment configuration
Out of Scope
- CloudFront invalidation
- Custom domain
- Preview environments
- Multi-environment deploys
Acceptance Criteria
Technical Notes
- Prefer GitHub OIDC over long-lived AWS access keys.
- Use
aws s3 sync out s3://bucket-name --delete.
Related
- Depends on: Add GitHub Actions CI workflow
- Depends on: Create S3 bucket for static site files
Description
Create a GitHub Actions workflow that deploys the static build output to S3 when changes are merged into
main.Scope
mainout/directory to S3Out of Scope
Acceptance Criteria
mainout/directory is synced to S3Technical Notes
aws s3 sync out s3://bucket-name --delete.Related