~cyplo/netlify-deployer

Use Netlify incremental deployment API
8c64b60b — Cyryl Płotnicki 1 year, 5 months ago
switch to a new token
ecbcd0c2 — Cyryl Płotnicki 1 year, 7 months ago
ad pylint to dev shell
9df81a00 — Cyryl Płotnicki 1 year, 9 months ago
Do not generate spurious version

clone

read-only
https://git.sr.ht/~cyplo/netlify-deployer
read/write
git@git.sr.ht:~cyplo/netlify-deployer

You can also use your local clone with git send-email.

#netlify_deployer

A script to deploy a whole directory to Netlify using their incremental deploy API.

Commandline usage:

  • Set NETLIFY_TOKEN environment variable to your token
  • netlify_deployer.py branch_name netlify_site_id directory_to_deploy

The branch name is being used to determine if the deployment is a preview one branch_name != 'master' or should the site be published - (when on master) - see this issue for a starting point to make it more explicit.

PRs welcome - please see the list of issues for the things to pick up.