This is a small project that sends notifications to a Discord channel via a webhook when a deployment is made via DeployHQ.
- Clone the repository.
- Install the dependencies with
npm install
. - Rename
.env_EXAMPLE
to.env
and fill in your Discord webhook URL and the port you want the server to listen on.
Start the server with node index.js
. It will listen for POST requests on the /deployed
endpoint.
Now you need to configure the IP and port in your DeployHQ application as a HTTP POST integration.
When a request is received, the server will verify the signature using the DeployHQ public key. If the signature is valid, a message will be sent to the Discord channel associated with the webhook URL.