Skip to content

How to create a GitHub Release in NukeBuild script / Octokit.Net #1358

Closed Answered by Xilconic
Xilconic asked this question in Q&A
Discussion options

You must be logged in to vote

I have not been able to make it work with the 'username + password' overload of the Credentials class.

I did manage to get the intergration to work with a Github Personal Access Token.

  1. Create a Personal Access Token (PAT) in Github (source: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) Make sure it has the grant for Reading and Writing of contents, in order to be authorized to create Github Releases (as well as uploading files to that release).
  2. Make sure you store the PAT somewhere safe, like a password safe.
  3. Define a Parameter in the NukeBuild script for passing in the PA…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Xilconic
Comment options

Comment options

You must be logged in to vote
2 replies
@Xilconic
Comment options

@valadas
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Xilconic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants