New action: GitHub Release
In response to user demand, this week we release an action which tightens the bond between the favorite Git hosting service of every developer, and the favorite CI/CD service of every automation enthusiast.
How it works
In the dev lingo, a release is a way to package and distribute versions of software. In other words, it's a snapshot of the project from a particular point in time accompanied by version number and release notes. On GitHub, releases are based on tags – and so is the action in Buddy, now available in the Cloud section of the action list:
Image loading...
In the action, you select your GitHub integration and organization, and the repository in which the release will be created, together with the commit to tag. By default, the tag is the current revision of the repository to which the pipeline is attached:
Image loading...
The Settings tab, on the other hand, lets you define the name and description of the release, mark it as draft or prerelease, and load additional assets – for example, the zipped package with your build:
Image loading...
Example pipeline
Here we can see a pipeline with four actions:
- The first one runs
npm run build
on the repository files in a Node container. - The second one packs the created build in a Zip package
- The third one creates a release on GitHub with the zipped package attached as an asset.
- Finally, the last action sends a notification to the company's channel that a new release was created.
Image loading...
Jarek Dylewski
Customer Support
A journalist and an SEO specialist trying to find himself in the unforgiving world of coders. Gamer, a non-fiction literature fan and obsessive carnivore. Jarek uses his talents to convert the programming lingo into a cohesive and approachable narration.