2019-07-15 03:28:11 +00:00
|
|
|
trigger:
|
|
|
|
tags:
|
|
|
|
include: ["*"]
|
|
|
|
|
2019-07-31 23:27:35 +00:00
|
|
|
stages:
|
|
|
|
- stage: Release
|
2019-09-04 23:13:53 +00:00
|
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
|
2019-07-31 23:27:35 +00:00
|
|
|
jobs:
|
|
|
|
# Release binary on GitHub
|
|
|
|
- template: ci/github-release.yml
|
|
|
|
parameters:
|
|
|
|
name: github_release
|
|
|
|
rust_version: stable
|
|
|
|
contents: |
|
|
|
|
*
|
|
|
|
!*.rlib
|
|
|
|
!*.d
|
|
|
|
!.*
|
|
|
|
targets:
|
|
|
|
- x86_64-unknown-linux-gnu
|
|
|
|
# Windows support temporarily disabled
|
|
|
|
# - x86_64-pc-windows-gnu
|
|
|
|
# - x86_64-pc-windows-msvc
|
|
|
|
- x86_64-apple-darwin
|
|
|
|
github:
|
|
|
|
gitHubConnection: StarshipRelease
|
|
|
|
repositoryName: starship/starship
|
|
|
|
isPreRelease: false
|
2019-07-14 21:54:45 +00:00
|
|
|
|
2019-07-31 23:27:35 +00:00
|
|
|
# Publish package to Crates.io
|
|
|
|
- template: ci/cargo-publish.yml
|
|
|
|
parameters:
|
|
|
|
name: cargo_publish
|
|
|
|
displayName: Publish to Crates.io
|