step-security/Upload files to a GitHub release
Upload files to a GitHub release (cross-platform)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repo_token | GitHub token. | yes | ${{ github.token }} |
| file | Local file to upload. | yes | — |
| tag | Tag to use as a release. | yes | ${{ github.ref }} |
| asset_name | Name of the asset. When not provided will use the file name. Unused if file_glob is set to "true". | — | — |
| overwrite | Overwrite the release in case it already exists. | — | — |
| promote | Promote a prerelease to release. Defaults to "false". | — | — |
| file_glob | If true the file can be a glob pattern, asset_name is ignored if this is true. | — | — |
| draft | Mark the release as a draft. Defaults to "false". | — | — |
| prerelease | Mark the release as a pre-release. Defaults to "false". | — | — |
| make_latest | Mark the release the latest release for the repository. Defaults to "true". | — | — |
| release_name | Explicitly set a release name. Defaults to empty which will cause the release to take the tag as name on GitHub. | — | — |
| body | Content of the release text. Empty by default. | — | — |
| target_commit | Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository\"s default branch (usually `main`). | — | — |
| repo_name | Specify the name of the GitHub repository in which the GitHub release will be created, edited, and deleted. If the repository is other than the current, it is required to create a personal access token with `repo`, `user`, `admin:repo_hook` scopes to the foreign repository and add it as a secret. Defaults to the current repository | — | — |
| release_id | Specify the ID of the draft release you want to upload to. | — | — |
| check_duplicates | Check for duplicate assets with the same name in the release and skip uploading of those. Defaults to "true". | — | — |
Outputs
| name | description |
|---|---|
| browser_download_url | The publicly available URL of the asset. |
| release_id | The ID of the draft release created. |