oto/assets/pipeline-test.yaml
leedongmyung[desktop] b4fac1a8fb pipeline update
2023-11-19 21:04:34 +09:00

43 lines
1.1 KiB
YAML

---
property:
workspace: .
pipeline:
id: main
workflow:
#동기식 실행, 해당 수행이 끝나야만 다음 스텝실행, command일경우 해당 id 기입
- async: appData
#비동기식 실행, 해당 수행이 완료됨과 관계없이 실행하고 다음 스텝을 실행한다
- exe: buildDart
#일반적인 if문과 동일
- if:
#property의 내용은 기본 dynamic(Object)형으로써, 비교시 정확한 캐스팅 필요, 적지 않을시 기본 string
condition-int: <property:test> == <property:result>
on-false:
- exe: zip
commands:
### Version 쓰기
- command: CreateAppData
id: appData
param:
scm: Git
name: OTO
relativeAssetPath: assets/data
returnVersion: "<!common.version>"
returnHash: "<!common.hash>"
### 실행가능한 파일로 빌드
- command: BuildDart
id: buildDart
param: {}
### 최종 zip 파일 형태로 저장
- command: Zip
id: zip
param:
zipFile: "<!common.workspace>/release/oto_win_v<!common.version>.zip"
zipList:
- "<!common.workspace>/release/oto_cli.exe"