Skip to content

CI/CD Deployment Setup

Prerequisites

IAM user and access keys created. GitHub repository: superloomdev/superloom.

Steps

Add GitHub Actions Secrets

  • GitHub → Repository → Settings → Secrets and variables → Actions → New repository secret
Secret nameValue
WEBSITE_DEPLOY_AWS_ACCESS_KEY_IDFrom .env.production
WEBSITE_DEPLOY_AWS_SECRET_ACCESS_KEYFrom .env.production
WEBSITE_DEPLOY_AWS_REGIONus-east-1
WEBSITE_DEPLOY_S3_BUCKETsuperloom-website
WEBSITE_DEPLOY_CLOUDFRONT_DISTRIBUTION_IDCloudFront distribution ID

Workflow File

Already created at .github/workflows/deploy-website.yml.

Triggers on push to main when files under website/ or docs/ change, or manually via workflow_dispatch. Builds VitePress, syncs website/.vitepress/dist/ to S3, then invalidates the CloudFront cache.

Notes

  • --delete removes files from S3 that no longer exist in the build output

Released under the MIT License.