feat/fix: upload mobile workflow artifacts (#1233)

This commit is contained in:
Fabian-Lars
2025-12-24 15:28:51 +01:00
committed by GitHub
parent f80c8e89c4
commit 8157b0ec10
4 changed files with 1533 additions and 509 deletions

View File

@@ -199,11 +199,11 @@ jobs:
# - `[version]`: app version
# - `[platform]`: target platform (OS)
# - `[arch]`: target architecture - format differs per platform
# - `[ext]`: file extension (`.app`, `.dmg`, `.msi`, `.exe`, `.AppImage`, `.deb`, `.rpm`)
# - `[ext]`: file extension (`.app`, `.dmg`, `.msi`, `.exe`, `.AppImage`, `.deb`, `.rpm`, `.apk`, `.aab`, `.ipa`)
# - `[mode]`: `debug` or `release` depending on the use of the `--debug` flag.
# - `[setup]`: `-setup` for the NSIS installer or an empty string for all other types.
# - `[_setup]`: `_setup` for the NSIS installer or an empty string for all other types.
# - `[bundle]`: one of `app`, `dmg`, `msi`, `nsis`, `appimage`, `deb`, `rpm`, `bin`.
# - `[bundle]`: one of `app`, `dmg`, `msi`, `nsis`, `appimage`, `deb`, `rpm`, `apk`, `aab`, `ipa`, `bin`.
#
# default: If not set, the names given by Tauri's CLI are kept.
releaseAssetNamePattern: ''

1936
dist/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@@ -61,6 +61,7 @@ async function run(): Promise<void> {
// Since artifacts are .zip archives we can do this before the .tar.gz step below.
if (shouldUploadWorkflowArtifacts) {
console.log('uploadWorkflowArtifacts enabled');
await uploadWorkflowArtifacts(artifacts);
}

View File

@@ -157,7 +157,18 @@ export function createArtifact({
let workflowArtifactName;
if (
name === 'binary' ||
['.app', '.dmg', '.exe', '.msi', '.deb', '.rpm', '.AppImage'].includes(ext)
[
'.app',
'.dmg',
'.exe',
'.msi',
'.deb',
'.rpm',
'.AppImage',
'.apk',
'.aab',
'.ipa',
].includes(ext)
) {
workflowArtifactName = `${platform}-${arch}-${bundle}`;
}