You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
# Changelog
2
2
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
+
3
6
## [2.10.0] - 2025-06-21
4
7
- Adds the ability to disable duplicate check, for lower Github API usage - [#142](https://github.com/svenstaro/upload-release-action/pull/142) (thanks @colinsullivan)
Copy file name to clipboardExpand all lines: README.md
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,25 +9,26 @@ You must provide:
9
9
10
10
-`file`: A local file to be uploaded as the asset.
11
11
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).
|`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. |
0 commit comments