mirror of
https://github.com/JonasKruckenberg/tauri-build.git
synced 2025-08-15 05:15:06 +00:00
23 lines
632 B
TypeScript
23 lines
632 B
TypeScript
import * as core from '@actions/core'
|
|
import {buildProject} from './build-project'
|
|
import stringArgv from 'string-argv';
|
|
|
|
async function run(): Promise<void> {
|
|
try {
|
|
const artifacts = await buildProject({
|
|
runner: core.getInput('runner'),
|
|
args: stringArgv(core.getInput('args')),
|
|
projectPath: core.getInput('projectPath'),
|
|
configPath: core.getInput('configPath'),
|
|
target: core.getInput('target'),
|
|
debug: core.getBooleanInput('debug')
|
|
})
|
|
|
|
core.setOutput('artifacts', artifacts.join('\n'))
|
|
} catch (error) {
|
|
if (error instanceof Error) core.setFailed(error.message)
|
|
}
|
|
}
|
|
|
|
run()
|