diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 26c6a70f5..648b5980e 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -173,7 +173,7 @@ jobs: releaseDraft: true args: ${{ matrix.args }} updaterJsonKeepUniversal: true - retryArgs: 1 + retryAttemps: 1 - name: Frontend-only Project uses: ./ diff --git a/README.md b/README.md index a94173659..628942a1c 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ These inputs allow you to change how your Tauri project will be build. | `updaterJsonKeepUniversal` | false | whether the updater JSON file should include universal macOS builds as darwin-universal on top of using it in the aarch64 and x86_64 fields. | bool | false | | `tauriScript` | false | the script to execute the Tauri CLI. It must not include any args or commands like `build` | string | `npm run\|pnpm\|yarn tauri` | | `args` | false | Additional arguments to the current build command | string | | -| `retryAttempts` | false | The number of times to re-try building the app if the initial build fails. For now this only affects `tauri build` but may include the upload steps in the future. | number | `0` | +| `retryAttempts` | false | The number of times to re-try building the app if the initial build fails. For now this only affects `tauri build` but may include the upload steps in the future. | number | 0 | ### Release Configuration diff --git a/action.yml b/action.yml index 191a98d92..0c5138b68 100644 --- a/action.yml +++ b/action.yml @@ -1,73 +1,73 @@ -name: "tauri-action" -description: "Build tauri binaries for MacOS, Windows and Linux" -icon: "download-cloud" -color: "blue" -author: "Lucas Nogueira " +name: 'tauri-action' +description: 'Build tauri binaries for MacOS, Windows and Linux' +icon: 'download-cloud' +color: 'blue' +author: 'Lucas Nogueira ' inputs: releaseId: - description: "The id of the release to upload artifacts as release assets" + description: 'The id of the release to upload artifacts as release assets' tagName: - description: "The tag name of the release to create" + description: 'The tag name of the release to create' releaseName: - description: "The name of the release to create" + description: 'The name of the release to create' releaseBody: - description: "The body of the release to create" + description: 'The body of the release to create' releaseDraft: - description: "Whether the release to create is a draft or not" - default: "false" + description: 'Whether the release to create is a draft or not' + default: 'false' prerelease: - description: "Whether the release to create is a prerelease or not" - default: "false" + description: 'Whether the release to create is a prerelease or not' + default: 'false' releaseCommitish: - description: "Any branch or commit SHA the Git tag is created from, unused if the Git tag already exists. Default: SHA of current commit" + description: 'Any branch or commit SHA the Git tag is created from, unused if the Git tag already exists. Default: SHA of current commit' projectPath: - description: "Path to the root of the project that will be built" - default: "." + description: 'Path to the root of the project that will be built' + default: '.' distPath: - description: "Path to the distributable folder with your index.html and JS/CSS" + description: 'Path to the distributable folder with your index.html and JS/CSS' iconPath: - description: "Path to the PNG icon to use as app icon, relative to the projectPath" + description: 'Path to the PNG icon to use as app icon, relative to the projectPath' appName: - description: "The app name to inject when initializing the Tauri app. Required if the name is not set via the `--config` flag." + description: 'The app name to inject when initializing the Tauri app. Required if the name is not set via the `--config` flag.' appVersion: - description: "The app version to inject when initializing the Tauri app. Required if the version is not set via the `--config` flag." + description: 'The app version to inject when initializing the Tauri app. Required if the version is not set via the `--config` flag.' includeDebug: - description: "Whether to include a debug build or not" - default: "false" + description: 'Whether to include a debug build or not' + default: 'false' includeRelease: - description: "Whether to include a release build or not" - default: "true" + description: 'Whether to include a release build or not' + default: 'true' includeUpdaterJson: - description: "Whether to upload a static JSON file for the updater using GitHub Releases as the CDN" - default: "true" + description: 'Whether to upload a static JSON file for the updater using GitHub Releases as the CDN' + default: 'true' updaterJsonPreferNsis: - description: "Whether the action will use the NSIS (setup.exe) or WiX (.msi) bundles for the updater JSON if both types exist. Will default to false. May default to true for apps using tauri@v2 in the future." + description: 'Whether the action will use the NSIS (setup.exe) or WiX (.msi) bundles for the updater JSON if both types exist. Will default to false. May default to true for apps using tauri@v2 in the future.' updaterJsonKeepUniversal: - description: "Whether the updater JSON file should add universal macOS as darwin-universal on top of using it in the darwin-aarch64 and darwin-x86_64 fields if no native builds exist." - default: "false" + description: 'Whether the updater JSON file should add universal macOS as darwin-universal on top of using it in the darwin-aarch64 and darwin-x86_64 fields if no native builds exist.' + default: 'false' tauriScript: - description: "The script to run to build the Tauri app" + description: 'The script to run to build the Tauri app' args: - description: "Arguments for the `tauri build` command" + description: 'Arguments for the `tauri build` command' retryAttemps: - description: "The number of times to re-try building the app if the initial build fails. For now this only affects `tauri build` but may include the upload steps in the future." + description: 'The number of times to re-try building the app if the initial build fails. For now this only affects `tauri build` but may include the upload steps in the future.' bundleIdentifier: - description: "The bundle identifier to inject when initializing the Tauri app" + description: 'The bundle identifier to inject when initializing the Tauri app' owner: - description: "The account owner of the repository" + description: 'The account owner of the repository' repo: - description: "The name of the repository" + description: 'The name of the repository' outputs: releaseId: - description: "The ID of the created release" + description: 'The ID of the created release' releaseHtmlUrl: - description: "The URL users can navigate to in order to view the created release" + description: 'The URL users can navigate to in order to view the created release' releaseUploadUrl: - description: "The URL for uploading assets to the created release" + description: 'The URL for uploading assets to the created release' artifactPaths: - description: "The paths of the generated artifacts" + description: 'The paths of the generated artifacts' appVersion: - description: "The version of the app" + description: 'The version of the app' runs: - using: "node20" - main: "dist/index.js" + using: 'node20' + main: 'dist/index.js'