Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Dec 10, 2024
1 parent f6397d5 commit e5a9a30
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ jobs:
releaseDraft: true
args: ${{ matrix.args }}
updaterJsonKeepUniversal: true
retryArgs: 1
retryAttemps: 1

- name: Frontend-only Project
uses: ./
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
84 changes: 42 additions & 42 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
name: "tauri-action"
description: "Build tauri binaries for MacOS, Windows and Linux"
icon: "download-cloud"
color: "blue"
author: "Lucas Nogueira <lucas@tauri.studio>"
name: 'tauri-action'
description: 'Build tauri binaries for MacOS, Windows and Linux'
icon: 'download-cloud'
color: 'blue'
author: 'Lucas Nogueira <lucas@tauri.studio>'
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'

0 comments on commit e5a9a30

Please sign in to comment.