You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
3 years ago
|
version: '1.0'
|
||
|
name: master-pipeline
|
||
|
displayName: MasterPipeline
|
||
|
triggers:
|
||
|
trigger: auto
|
||
|
push:
|
||
|
branches:
|
||
|
include:
|
||
|
- master
|
||
|
stages:
|
||
|
- name: compile
|
||
|
displayName: 编译
|
||
|
strategy: naturally
|
||
|
trigger: auto
|
||
|
steps:
|
||
|
- step: build@nodejs
|
||
|
name: build_nodejs
|
||
|
displayName: Nodejs 构建
|
||
|
nodeVersion: 14.16.0
|
||
|
commands:
|
||
|
- npm install && rm -rf ./dist && npm run build
|
||
|
artifacts:
|
||
|
- name: BUILD_ARTIFACT
|
||
|
path:
|
||
|
- ./dist
|
||
|
strategy:
|
||
|
retry: '0'
|
||
|
- step: publish@general_artifacts
|
||
|
name: publish_general_artifacts
|
||
|
displayName: 上传制品
|
||
|
dependArtifact: BUILD_ARTIFACT
|
||
|
artifactName: output
|
||
|
strategy:
|
||
|
retry: '0'
|
||
|
dependsOn: build_nodejs
|
||
|
- name: release
|
||
|
displayName: 发布
|
||
|
strategy: naturally
|
||
|
trigger: auto
|
||
|
steps:
|
||
|
- step: publish@release_artifacts
|
||
|
name: publish_release_artifacts
|
||
|
displayName: 发布
|
||
|
dependArtifact: output
|
||
|
version: 1.0.0.0
|
||
|
autoIncrement: true
|
||
|
strategy:
|
||
|
retry: '0'
|
||
|
permissions:
|
||
|
- role: admin
|
||
|
members: []
|