mirror of
https://github.com/tauri-apps/tauri-action.git
synced 2026-01-31 00:35:20 +01:00
refactor: workflowArtifactsNamePattern -> workflowArtifactNamePattern
This commit is contained in:
@@ -95,7 +95,7 @@ These inputs allow you to change how your Tauri project will be build.
|
||||
These inputs allow you to modify the GitHub release.
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ | ------------------------------------------- |
|
||||
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ | ------------------------------------------- |
|
||||
| `releaseId` | The id of the release to upload artifacts as release assets. If set, `tagName` and `releaseName` will not be considered to find a release. | number | |
|
||||
| `tagName` | The tag name of the release to upload/create or the tag of the release belonging to `releaseId` | string | |
|
||||
| `releaseName` | The name of the release to create. Required if there's no existing release for `tagName` | string | |
|
||||
@@ -111,7 +111,7 @@ These inputs allow you to modify the GitHub release.
|
||||
| `releaseAssetNamePattern` | The naming pattern to use for the uploaded assets. If not set, the names given by Tauri's CLI are kept. | string | none |
|
||||
| `uploadPlainBinary` | Whether to upload the unbundled executable binary or not. Requires Tauri v2+. To prevent issues with Tauri's [`bundle_type`](https://docs.rs/tauri-utils/latest/tauri_utils/platform/fn.bundle_type.html) value this should only be used with the `--no-bundle` flag. | bool | false |
|
||||
| `uploadWorkflowArtifacts` | Whether to upload the bundles and executables as [workflow artifacts](https://docs.github.com/en/actions/concepts/workflows-and-actions/workflow-artifacts). Independent from the release configs. Affected by `uploadPlainBinary`. | bool | false |
|
||||
| `workflowArtifactsNamePattern` | The naming pattern to use for uploaded [workflow artifacts](https://docs.github.com/en/actions/concepts/workflows-and-actions/workflow-artifacts). Ignored if `uploadWorkflowArtifacts` is not enabled. | string | `[platform]-[arch]-[bundle]` |
|
||||
| `workflowArtifactNamePattern` | The naming pattern to use for uploaded [workflow artifacts](https://docs.github.com/en/actions/concepts/workflows-and-actions/workflow-artifacts). Ignored if `uploadWorkflowArtifacts` is not enabled. | string | `[platform]-[arch]-[bundle]` |
|
||||
| `uploadUpdaterSignatures` | Whether to upload the .sig files generated by Tauri. Does not affect the `latest.json` generator. | bool | true |
|
||||
|
||||
## Outputs
|
||||
|
||||
@@ -52,7 +52,7 @@ inputs:
|
||||
uploadWorkflowArtifacts:
|
||||
description: 'Whether to upload the bundles and executables as workflow artifacts. Independent from the release configs. Affected by `uploadPlainBinary`.'
|
||||
default: 'false'
|
||||
workflowArtifactsNamePattern:
|
||||
workflowArtifactNamePattern:
|
||||
description: 'The naming pattern to use for uploaded workflow artifacts. Ignored if `uploadWorkflowArtifacts` is not enabled.'
|
||||
uploadUpdaterSignatures:
|
||||
description: 'Whether to upload the .sig files generated by the Tauri CLI. Does not affect the latest.json generator.'
|
||||
|
||||
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -64,8 +64,8 @@ async function run(): Promise<void> {
|
||||
const shouldUploadWorkflowArtifacts = core.getBooleanInput(
|
||||
'uploadWorkflowArtifacts',
|
||||
);
|
||||
const workflowArtifactsNamePattern =
|
||||
core.getInput('workflowArtifactsNamePattern') ||
|
||||
const workflowArtifactNamePattern =
|
||||
core.getInput('workflowArtifactNamePattern') ||
|
||||
'[platform]-[arch]-[bundle]';
|
||||
const uploadUpdaterSignatures = core.getBooleanInput(
|
||||
'uploadUpdaterSignatures',
|
||||
@@ -122,7 +122,7 @@ async function run(): Promise<void> {
|
||||
if (shouldUploadWorkflowArtifacts) {
|
||||
await uploadWorkflowArtifacts(
|
||||
artifacts,
|
||||
workflowArtifactsNamePattern,
|
||||
workflowArtifactNamePattern,
|
||||
retryAttempts,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user