Skip to content

Commit 02f15da

Browse files
author
Yair Morgenstern
committed
2.11.0
1 parent 0b45752 commit 02f15da

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## [2.11.0] - 2025-06-30
4+
- Adds a `release_id` output, and optional input, for uploading files to release - [#136](https://github.com/svenstaro/upload-release-action/pull/136) (thanks @alexis-opolka)
5+
36
## [2.10.0] - 2025-06-21
47
- Adds the ability to disable duplicate check, for lower Github API usage - [#142](https://github.com/svenstaro/upload-release-action/pull/142) (thanks @colinsullivan)
58

README.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,26 @@ You must provide:
99

1010
- `file`: A local file to be uploaded as the asset.
1111

12-
Optional Arguments
13-
14-
- `repo_token`: Defaults to `github.token`.
15-
- `tag`: The tag to upload into. If you want the current event's tag or branch name, use `${{ github.ref }}` (the `refs/tags/` and `refs/heads/` prefixes will be automatically stripped). Defaults to `github.ref`.
16-
- `asset_name`: The name the file gets as an asset on a release. Use `$tag` to include the tag name. When not provided it will default to the filename.
17-
This is not used if `file_glob` is set to `true`.
18-
- `file_glob`: If set to true, the `file` argument can be a glob pattern (`asset_name` is ignored in this case) (Default: `false`)
19-
- `overwrite`: If an asset with the same name already exists, overwrite it (Default: `false`).
20-
- `check_duplicates`: Check for existing assets with the same name. Disabling removes this validity check, and allows reduced Github API usage when there are a large number of files (Default: `true`).
21-
- Note that this will cause reuploads of the same file to fail - for that, use `overwrite` instead.
22-
- `promote`: If a prerelease already exists, promote it to a release (Default: `false`).
23-
- `draft`: Sets the release as a draft instead of publishing it, allowing you to make any edits needed before releasing (Default: `false`).
24-
- `release_id`: Used for searching for existing release, instead of tag. Must be used if uploading files to an existing draft release.
25-
- `prerelease`: Mark the release as a pre-release (Default: `false`).
26-
- `make_latest`: Mark the release as the latest release for the repository (Default: `true`).
27-
- `release_name`: Explicitly set a release name. (Defaults: implicitly same as `tag` via GitHub API).
28-
- `target_commit`: Sets the commit hash or branch for the tag to be based on (Default: the default branch, usually `main`).
29-
- `body`: Content of the release text (Default: `""`).
30-
- `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. (Default: current repository).
12+
### Optional Arguments
13+
14+
15+
| **Argument** | **Default** | **Description** |
16+
|--------------------|---------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
17+
| `repo_token` | `github.token` | Defaults to `github.token`. |
18+
| `tag` | `github.ref` | The tag to upload into. If you want the current event's tag or branch name, use `${{ github.ref }}` (the `refs/tags/` and `refs/heads/` prefixes will be automatically stripped). |
19+
| `asset_name` | Filename | The name the file gets as an asset on a release. Use `$tag` to include the tag name. This is not used if `file_glob` is set to `true`. |
20+
| `file_glob` | `false` | If set to true, the `file` argument can be a glob pattern (`asset_name` is ignored in this case). |
21+
| `overwrite` | `false` | If an asset with the same name already exists, overwrite it. |
22+
| `check_duplicates` | `true` | Check for existing assets with the same name. Disabling removes this validity check, and allows reduced Github API usage when there are a large number of files. |
23+
| `promote` | `false` | If a prerelease already exists, promote it to a release. |
24+
| `draft` | `false` | Sets the release as a draft instead of publishing it, allowing you to make any edits needed before releasing. |
25+
| `release_id` | --- | Used for searching for existing release, instead of tag. Must be used if uploading files to an existing draft release. |
26+
| `prerelease` | `false` | Mark the release as a pre-release. |
27+
| `make_latest` | `true` | Mark the release as the latest release for the repository. |
28+
| `release_name` | Same as `tag` | Explicitly set a release name. |
29+
| `target_commit` | Default branch (usually `main`) | Sets the commit hash or branch for the tag to be based on. |
30+
| `body` | `""` | Content of the release text. |
31+
| `repo_name` | Current repository | Specify the name of the GitHub repository in which the GitHub release will be created, edited, and deleted. |
3132

3233
## Output variables
3334

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "upload-release-action",
3-
"version": "2.10.0",
3+
"version": "2.11.0",
44
"private": true,
55
"description": "Upload files to a GitHub release",
66
"main": "lib/main.js",

0 commit comments

Comments
 (0)