Is there a way to draft a release in github from within a continua build skript?
When running our production build I want to see this version as a release in github
Hi Haggy,
Not currently, but this is something we could implement as a build event handler. We’ll add this to our to-do list.
thx for your reply. there is simple post to do this wiht a generated access tokken I’ll attach the example below.
btw you should also test that it works with repositories owned by companies not users. As currently there seem to be some differences.
curl -X POST -H “Content-Type: application/json” -H “Cache-Control: no-cache” -H “Postman-Token: d80927b0-7113-a6ce-25d7-ea3e4e10c5ad” -d ‘{“tag_name”: “v1.0.4”,“target_commitish”: “dev”,“name”: “v1.0.3”,“body”: “Release of version 1.0.4”,“draft”: false,“prerelease”: true}
’ “https://api.github.com/repos/Owner/Repository/releases?access_token=gdfas6sdfsddfdsfdsfdsfacb4fssdf1”