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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
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: 16.14.2
|
|
|
|
commands:
|
|
|
|
- npm install && rm -rf ./dist && npm run build:static
|
|
|
|
artifacts:
|
|
|
|
- name: BUILD_ARTIFACT
|
|
|
|
path:
|
|
|
|
- ./dist
|
|
|
|
strategy: {}
|
|
|
|
- step: publish@general_artifacts
|
|
|
|
name: publish_general_artifacts
|
|
|
|
displayName: 上传制品
|
|
|
|
dependArtifact: BUILD_ARTIFACT
|
|
|
|
artifactName: output
|
|
|
|
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
|