Skip to content

:octocat: Github action to download and install release artifacts for Golang and Rust

License

Notifications You must be signed in to change notification settings

tj-actions/setup-bin

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

CI Update release version. Public workflows that use this action.

setup-bin

GitHub action to download and install go and rust binaries from github release artifacts created by goreleaser-action or rust-build.action.

...
    steps:
      - uses: actions/checkout@v2
      - name: Setup bin
        id: serup-bin-go
        uses: tj-actions/setup-bin@v1
        with:
          language-type: 'go'
          repository-owner: [REPOSITORY_OWNER]
          repository: [REPOSITORY]
          
      - name: Show output
        run: |
          echo "setup-bin-go: ${{ steps.setup-bin-go.outputs.binary_path }}"

Inputs

INPUT TYPE REQUIRED DEFAULT DESCRIPTION
language-type string true Language type of package to
install: rust or go
repository string true Repository where the binary is
located
repository-owner string true Repository owner where the binary
is located
token string false "${{ github.token }}" GITHUB_TOKEN or a Repo scoped
PAT
version string false "latest" Version of the binary to
install

Outputs

OUTPUT TYPE DESCRIPTION
binary_path string Path to the installed binary

If you feel generous and want to show some extra appreciation:

Buy me a coffee

Credits

This package was created with Cookiecutter using cookiecutter-action

Report Bugs

Report bugs at https://github.com/tj-actions/setup-bin/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your workflow that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.