Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ The primary goals are, in order of priority:
This action only supports installing from releases where the release:

- is tagged with the full `{major}.{minor}.{patch}` semantic version
- contains raw binary assets (archives not supported)
- contains raw binary assets or zip archives (zip archives must contain exactly one binary file)
- assets are labeled with the binary name and [target triple] in the format `<binary name>-<target triple>`
- also supports assets labeled with underscore format: `<binary name>_<platform>_<arch>` (e.g., `fossa_linux_amd64`)

You can create compatible releases with [semantic-release], using a workflow like [semantic-release-action/rust].

Expand Down Expand Up @@ -63,6 +64,16 @@ Install a binary from a release with multiple binaries available:
EricCrosson/future-tools/flux-capacitor@v1
```

Install a binary from a zip archive (the zip must contain exactly one binary file):

```yaml
- name: Install FOSSA CLI
uses: EricCrosson/install-github-release-binary@v2
with:
targets: |
fossas/fossa-cli@v3.11.7:sha256-d6f73d3da1cc7727610dd3f2c1a6021aeb23516f74b6f031e91deb31eba34f2b
```

## Inputs

| Input Parameter | Required | Description |
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Install GitHub Release binary
description: Install a binary from a GitHub Release
description: Install a binary from a GitHub Release (supports both direct binaries and zip archives)
author: Eric Crosson
branding:
icon: arrow-down
Expand Down
129 changes: 103 additions & 26 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading