Downloads a pinned release of the FlatRun CLI, places the binary on PATH, and returns its install path.
- uses: flatrun/actions/setup-flatrun@v1
with:
version: 0.1.0
- run: flatrun version| Input | Required | Default | Description |
|---|---|---|---|
version |
Yes | CLI release to install. With or without v prefix. |
|
install-dir |
No | $RUNNER_TOOL_CACHE/flatrun/<version>/<arch> |
Directory the binary is placed in. |
repository |
No | flatrun/cli |
Source repo for release assets. |
| Output | Description |
|---|---|
version |
The CLI version that was installed. |
path |
Absolute path to the installed flatrun binary. |
This action does not handle credentials. Configure the CLI in the same step that runs it:
- run: flatrun deployment deploy api
env:
FLATRUN_URL: ${{ vars.FLATRUN_URL }}
FLATRUN_TOKEN: ${{ secrets.FLATRUN_TOKEN }}Keep FLATRUN_TOKEN in secrets. FLATRUN_URL is non-sensitive and belongs in vars (or hard-coded per environment).
The runner needs bash, gh, tar (for .tar.gz assets), and unzip (for .zip assets). GitHub-hosted runners include all four. The action authenticates gh with github.token, which is sufficient for downloading public release assets.
- Linux x86_64 / arm64
- macOS x86_64 / arm64
Windows is not yet supported.