Galhooks is a simple Node.js / Express server used to save and list Unity Cloud builds online. It was made as an internal tool, but should work for any project.
Galhooks will by default run on port 3000. This can be changed directly in /bin/www
.
git clone https://github.com/LiterallyFabian/Galhooks.git
cd Galhooks
npm install
# (set up database from `table.sql`)
# (set your environment variables from `.env.example`)
npm start
-
Head over to your projects integrations page (
https://dashboard.unity3d.com/organizations/--ORG--/projects/--PROJECT UPID--/settings/integrations
) and click "New integration" -
Select
Webhook
, and select theBuild Success
event. -
Fill in your webhook URL (see API) and authorization secret. Leave SSL/TLS verification enabled.
- Node.js >=v10.24.1
- MySQL
HTTP Method | URI Path | Headers | Description |
---|---|---|---|
GET | / | Returns the table with all builds. | |
POST | /webhook | Authorization | Adds a build to the database. Unity should be configured to post here. |