1
0
mirror of https://github.com/chmln/sd synced 2024-07-08 16:35:44 +00:00
sd/azure-pipelines.yml
2020-03-29 16:53:23 -04:00

38 lines
933 B
YAML

trigger:
branches:
include: ['*']
tags:
include: ['*']
resources:
repositories:
- repository: rust_pipelines
type: github
name: xoac/rust-azure-pipelines
ref: refs/heads/master
endpoint: githubConnection
stages:
- stage: test
displayName: "Test"
jobs:
- template: ci/jobs/cargo-test.yaml@rust_pipelines
- stage: build
displayName: "Build"
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
jobs:
- template: ci/jobs/cargo-build.yml@rust_pipelines
dependsOn:
- test
# Deploy binaries to github only if tags start with `v` for example `v0.1.5`
- stage: deploy
displayName: "Deploy"
dependsOn:
- build
jobs:
- template: ci/scenarios/github/release.yml@rust_pipelines
parameters:
job_condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
gitHubConnection: githubConnection