Publish Release Assets With The Github CLI #shorts
Transcript
Hi, my name is Stu. In this quick video, I'm going to show you how to upload release assets using the GitHub CLI on GitHub hosted runners. Note, for self-hosted runners you may also need to install the GitHub CLI first. It's easier for us to set the working directory using this following parameter. You'll need to set this to your artifact working directory. Next, use the run statement to log into the GitHub CLI as shown. Finally, we're going to loop through all the files in the current working directory and call the GitHub release upload with the tag name as the first parameter and the file name as the second. Once done, you should end up with something like this.
If you enjoyed this video, consider subscribing to the YouTube channel for more content like this.