Triggering a Deploy in Netlify With Bookmarklets
Ok here’s the pitch: trigger a build of your Netlify site through a custom bookmarklet, then leverage bookmark syncing so you have one-click build triggers across all your devices.
Now you never have to login to Netlify again to trigger a build of your site.
How It Works
Remember bookmarklets? I feel like bookmarklets used to be really popular, but don’t get talked about as much these days. In case you don’t remember what they are, here’s a refresher from Wikipedia:
- Generate a custom build hook in Netlify
- Create a bookmark (of any website) in your browser of choice then change the bookmark’s address URL to your bookmarklet code.
Pop it into your browser, and voilà!
One-Click Deploys Everywhere
What makes this even better is when you sync your bookmarks across devices. I use iCloud for syncing bookmarks in Safari, which means I can trigger a deploy of any of my sites from Safari on my iPhone or my Mac.