sanity-plugin-digitalocean-deploy
v3.0.6
Published
Trigger DigitalOcean Deploy Hooks from your Sanity Studio.
Downloads
138
Maintainers
Readme
DigitalOcean Deployments for Sanity
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.
Install
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
⚠️ Note: If your Studio is not using the @sanity/dashboard
part, you'll need to manually install this as well:
sanity install @sanity/dashboard
Your first DigitalOcean Deployment
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!