Skip to content

Instantly share code, notes, and snippets.

@stancl
stancl / deploy.sh
Last active September 16, 2024 02:39
Deploy using GitHub actions and SSH to a VPS
#!/bin/sh
set -e
vendor/bin/phpunit
npm run prod
git add .
(git commit -m "Build frontend assets for deployment to production") || true
(git push) || true