I would like to use gitHub "releases" feature to tell my production server when should it update its code base from GitHub.
I do not want it to grab on each push, but just when a new release is being created.
My plan was to create a bash script that will check every 10-15 minutes if there is a new release and if it found a new release, it will do a pull request or download the latest release zip file, deploy the new code and restart the node service.
But I am stuck on the first step and that's how can I figure out if there is a new release.
Any help/pointer or direction will be greatly appreciated.