Install Binary from GitHub Releases
ActionsEasily install a binary from a GitHub Release that works across repositories in Rust, Go, C++, and more
v1.2.0
LatestBy sigoden
Tags
(2)This action installs a binary from Github Releases:
- Automatically downloads and caches the binary, adding it to the PATH.
- Supports specific release tags and binary names.
- Particularly useful for installing single-file binaries such as those developed with Go or Rust.
Name | Required | Description | Default |
---|---|---|---|
repo |
true | The GitHub repository in owner/repo format |
|
tag |
false | The release tag to download | latest |
name |
false | The specific binary name within the release | |
cache |
false | Controls whether the binary is cached | false |
token |
false | GitHub token, useful for private repositories | ${{ github.token }} |
Install the latest binary from a public GitHub repository.
- uses: sigoden/install-binary@v1
with:
repo: sigoden/argc
Install a specific binary (protoc
) from a given release tag (v26.1
) in the protocolbuffers/protobuf
repository.
- uses: sigoden/install-binary@v1
with:
repo: protocolbuffers/protobuf
tag: v26.1
name: protoc
Install a specific binary (wasm-opt
) from the WebAssembly/binaryen
repository, which contains multiple binaries.
- uses: sigoden/install-binary@v1
with:
repo: WebAssembly/binaryen
name: wasm-opt
Install a binary from a private repository using a Personal Access Token (PAT).
- uses: sigoden/install-binary@v1
with:
repo: my-org/my-private-repo
token: ${{ secrets.MY_PAT }}
The scripts and documentation in this project are released under the MIT License
Install Binary from GitHub Releases is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.