create pipeline-build-20220901.yml
This commit is contained in:
parent
69e2bcb928
commit
d6a322d990
56
.workflow/pipeline-build-20220901.yml
Normal file
56
.workflow/pipeline-build-20220901.yml
Normal file
@ -0,0 +1,56 @@
|
||||
version: '1.0'
|
||||
name: pipeline-build-20220901
|
||||
displayName: pipeline-build
|
||||
triggers:
|
||||
trigger: auto
|
||||
push:
|
||||
tags:
|
||||
prefix:
|
||||
- ''
|
||||
stages:
|
||||
- name: stage-82deebcf
|
||||
displayName: 构建
|
||||
strategy: naturally
|
||||
trigger: auto
|
||||
executor: []
|
||||
steps:
|
||||
- step: build@nodejs
|
||||
name: build_nodejs
|
||||
displayName: Nodejs 构建
|
||||
nodeVersion: 16.14.2
|
||||
commands:
|
||||
- '# 设置NPM源,提升安装速度'
|
||||
- npm config set registry https://registry.npmmirror.com
|
||||
- wget https://kgithub.com/electron/electron/releases/download/v2.0.16/electron-v2.0.16-linux-x64.zip
|
||||
- wget https://kgithub.com/electron/electron/releases/download/v2.0.16/SHASUMS256.txt
|
||||
- mkdir ./cache/electron
|
||||
- mkdir ./cache/electron/cache
|
||||
- mv electron-v2.0.16-linux-x64.zip ./cache/electron/cache
|
||||
- mv SHASUMS256.txt ./cache/electron/cache/SHASUMS256.txt-2.0.16
|
||||
- npm i yarn -g
|
||||
- yarn
|
||||
- yarn package-linux
|
||||
artifacts:
|
||||
- name: BUILD_ARTIFACT
|
||||
path:
|
||||
- ./release
|
||||
caches:
|
||||
- ~/.npm
|
||||
- ~/.yarn
|
||||
notify: []
|
||||
strategy:
|
||||
retry: '0'
|
||||
- name: stage-cd5d9e5b
|
||||
displayName: 上传制品
|
||||
strategy: naturally
|
||||
trigger: auto
|
||||
executor: []
|
||||
steps:
|
||||
- step: publish@general_artifacts
|
||||
name: publish_general_artifacts
|
||||
displayName: 上传制品
|
||||
dependArtifact: BUILD_ARTIFACT
|
||||
artifactName: output
|
||||
notify: []
|
||||
strategy:
|
||||
retry: '0'
|
Loading…
x
Reference in New Issue
Block a user