Setup GitHub Release Action

This GitHub/Gitea Action downloads a tool from a GitHub release based on platform-aware selection rules and adds it to the system PATH.

Usage

Simple (Automatic Selection)

The action will automatically detect your OS and ARCH and look for a matching archive.

- uses: ./
  with:
    repo-name: 'gohugoio/hugo'

You can use a regex pattern (prefixed with ~) to narrow down the asset.

- uses: ./
  with:
    repo-name: 'gohugoio/hugo'
    file-name: '~hugo_extended'

Custom File Type

- uses: ./
  with:
    repo-name: 'some/repo'
    file-type: 'package' # Matches .deb, .rpm, .pkg

Inputs

  • repo-name (required): GitHub repository in owner/repo format.
  • file-name (optional): Literal name or regex pattern (if starts with ~) to match the asset.
  • file-type (optional, default: archive): Predefined keywords archive, package, or a custom regex extension pattern.
  • token (optional): GitHub token for authentication.
Description
A Github/Gitea Action that downloads a release from a selected repository and uses it as a tool for other action use.
Readme 2 MiB
Languages
TypeScript 100%