{"repo":"tcnksm/ghr","free":true,"listed":false,"github":"https://github.com/tcnksm/ghr","clone":"git clone https://github.com/tcnksm/ghr.git","description":"Upload multiple artifacts to GitHub Release in parallel","language":"Go","stars":1261,"topics":["golang"],"license":"MIT","category":"dev-tools","readme_excerpt":"ghr ==== [ ][release] [ ][GitHub Actions] [ ][PkgGoDev] [ ][license] [release]: https://github.com/tcnksm/ghr/releases [GitHub Actions]: https://github.com/tcnksm/ghr/actions/workflows/test.yml [license]: https://github.com/tcnksm/ghr/blob/master/LICENSE [PkgGoDev]: https://pkg.go.dev/github.com/tcnksm/ghr ghr creates GitHub Release and uploads artifacts in parallel. Demo This demo creates GitHub Release page with v1.0.0 tag and uploads cross-compiled golang binaries. You can see release page here. Usage Using ghr is simple. After setting GitHub API token (see more on GitHub API Token section), change into your repository root directory and run the following command: You must provide TAG (git tag) and optionally a PATH to artifacts you want to upload. You can specify a file or a directory. If you provide a directory, all files in that directory will be uploaded. ghr assumes that you are in a git repository when executed. This is because normally the artifacts you want to upload to a GitHub Release page are in that repository or generated there. With this assumption, ghr implicitly reads repository URL from .git/config file. But you can change this kind of information, see Options section. GitHub API Token To use ghr , you need to get a GitHub token with an account which has enough permissions to create releases. To get a token, visit GitHub account settings page, then go to Applications for the user. Here you can create a token in the Personal access tokens section. For a pri","default_branch":null,"files":null,"tree":[],"storefront":"/r/tcnksm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tcnksm/ghr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}