mirror of
https://github.com/tauri-apps/tauri-action.git
synced 2026-01-31 00:35:20 +01:00
feat/fix: upload mobile workflow artifacts (#1233)
This commit is contained in:
@@ -199,11 +199,11 @@ jobs:
|
|||||||
# - `[version]`: app version
|
# - `[version]`: app version
|
||||||
# - `[platform]`: target platform (OS)
|
# - `[platform]`: target platform (OS)
|
||||||
# - `[arch]`: target architecture - format differs per platform
|
# - `[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.
|
# - `[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.
|
||||||
# - `[_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.
|
# default: If not set, the names given by Tauri's CLI are kept.
|
||||||
releaseAssetNamePattern: ''
|
releaseAssetNamePattern: ''
|
||||||
|
|||||||
2024
dist/index.js
vendored
2024
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
@@ -61,6 +61,7 @@ async function run(): Promise<void> {
|
|||||||
|
|
||||||
// Since artifacts are .zip archives we can do this before the .tar.gz step below.
|
// Since artifacts are .zip archives we can do this before the .tar.gz step below.
|
||||||
if (shouldUploadWorkflowArtifacts) {
|
if (shouldUploadWorkflowArtifacts) {
|
||||||
|
console.log('uploadWorkflowArtifacts enabled');
|
||||||
await uploadWorkflowArtifacts(artifacts);
|
await uploadWorkflowArtifacts(artifacts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
13
src/utils.ts
13
src/utils.ts
@@ -157,7 +157,18 @@ export function createArtifact({
|
|||||||
let workflowArtifactName;
|
let workflowArtifactName;
|
||||||
if (
|
if (
|
||||||
name === 'binary' ||
|
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}`;
|
workflowArtifactName = `${platform}-${arch}-${bundle}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user