Files
setup-github-release/README.md
Slawomir Koszewski bb02fc63ba
Some checks failed
Test Action / test (push) Failing after 10s
Update README title to match action name
2026-01-10 23:36:53 +01:00

1.0 KiB

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.