0

I have everyting automated with CloudBuild and additionally I'd like to create a GitHub release using the CloudBuild. In short, I prepare binary files and then I want to create a GitHub release using those files.

I cannot find any working example. What should the appropriate step look like? Additionally, I'm not sure about the authentication between GitHub <-> CloudBuild.

Xavier123
  • 71
  • 2
  • 8
  • Maybe try adapting a script like [this one](https://gist.github.com/mcguffin/746afffa0929ca8e2ea2ba8538776742) and calling it from a new step with a bash entrypoint. For the authentication between GitHub and CloudBuild you need a Personal Access Token – Javier Roger Aug 05 '22 at 09:40

1 Answers1

1
  • You can refer to the Documentation (click GitHub cli tab) where how to create a release using CLI is explained stepwise.
  • There is also a separated command Doc for how to add files to the release.
  • To use Github Cli in cloud build , the best Practice would be to use community builder , for more information how to use it you can refer to the Documentation where Readme contains a more detailed view.

For more information, you can visit to the Public Documentation where it is mentioned as :

This page explains how to use community-contributed builders and custom builders in Cloud Build. The Cloud Build developer community provides open-source builders that you can use to execute your tasks. If the task you want to perform requires capabilities that are not provided by an existing image, you can build your own custom image and use it in a build step. To learn about the different types of builders, see Cloud Builders.

Divyani Yadav
  • 1,030
  • 4
  • 9