NOTE: this plugin is for Sanity v2.0. I'll try to find some time this summer to update, but PRs are of course welcome.
This project is shamelessly ripped off of based on sanity-plugin-vercel-deploy by Nick DiMatteo.
Trigger DigitalOcean Deploy Hooks from your Sanity Studio.
✨ LIVE status updates ✨ multiple deployments ✨ active polling ✨
Run the following command in your studio folder using the Sanity CLI:
yarn add sanity-plugin-digitalocean-deploy
# or npm
npm i sanity-plugin-digitalocean-deploy
@sanity/dashboard
part, you'll need to manually install this as well:
sanity install @sanity/dashboard
Once installed, you should see a new "Deploy" tool in your Sanity Studio navbar.
To create a new deployment, click the Add Project
button. Next, you'll be prompted to add the following:
Title
A name for your deployment. This can be whatever you want, to help you organize your deployments. Typically, this should be the environment you are deploying to, like
Production
orStaging
Deploy App ID
This is the DigitalOcean App ID you want to trigger.
API Token
This is a token from your DigitalOcean Account (not project). TODO: directions
😎 Once you've created your deployment you can now trigger deploys at anytime!