Overview
Push to deploy for static sites on the Lolipop rental server, via GitHub Actions and FTPS.
Lolipop Deploy Kit, or ロリポップ!デプロイキット, turns deployment to a Lolipop rental server into a plain git push. Source code is available on GitHub.
Normally, publishing to one of these servers means opening an FTP client and dragging files across by hand. This kit installs a GitHub Actions workflow that deploys a static website over FTPS every time changes land on the main branch.
Why
Lolipop is a popular Japanese shared hosting service, and FTP or FTPS is the standard way to publish to it.
Manually re-uploading files after every change is slow, error prone, and easy to forget. Forgetting is the real problem, because the site silently falls behind the repository and nobody notices until somebody points at a page that should have changed weeks ago.
This kit hands the chore to GitHub Actions. Push to main and the workflow uploads the site for you. Manual deploys from the Actions tab work too, for the times you want to force one.
What is in the kit
lolipop-deploy-kit/
├── install.sh # adds the workflow to any static-site repo
├── templates/deploy.yml # the GitHub Actions FTPS workflow
├── scripts/check-static-site.sh # sanity-checks the target project
└── docs/secrets.md # how to set up the FTP credentials
Three properties are worth calling out.
FTP credentials live in GitHub repository secrets, never in the repository itself.
Development files such as .git and node_modules are excluded from the upload, so the server only receives what the site actually needs.
It works with any static HTML, CSS, and JavaScript site, with no build system required.
Install
From inside a static website project:
../lolipop-deploy-kit/install.sh .
That creates the workflow file. Add the FTP secrets described in docs/secrets.md, push to main, and the site deploys itself from then on.