Auto deploy a Sculpin website for free
Sculpin is a fantastic PHP-based static site generator built on Symfony and Composer components. I wanted to set up automated deployment to production whenever changes are merged to the master branch—without any additional costs or infrastructure.
The solution: Travis CI with S3 deployment.
The Setup
Create a .travis.yml file in your repository:
language: php
php:
- '7.0'
install:
- composer install
script: vendor/sculpin/sculpin/bin/sculpin --env=prod generate
deploy:
provider: s3
access_key_id:
secure: "FnJ--snip"
secret_access_key:
secure: "Bw4--snip"
bucket: "rokka-io-site"
region: "eu-central-1"
skip_cleanup: true
local_dir: output_prod
on:
branch: master
The encrypted keys are generated using the Travis CLI tool to keep your AWS credentials secure.
Benefits
- Zero cost for open source projects on Travis CI
- Simplified workflow — just push to master and the site deploys automatically
- Automatic notifications if builds fail, preventing broken sites from going live
- No additional infrastructure to maintain
This setup has been running reliably for our sites, making deployments completely hands-off.