Skip to content

Commit

Permalink
Prepare release to crates.io via azure-pipelines
Browse files Browse the repository at this point in the history
* Disabled github release to avoid rewriting the changelog

* Disabled docker release to retain release timeline
  • Loading branch information
DrSensor committed Jun 29, 2019
1 parent 89f32cb commit 0769a32
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,28 +112,28 @@ steps:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/cli'
artifactName: cli

- task: Docker@2
condition: and(contains(variables['target'], 'musl'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
inputs:
command: buildAndPush
containerRegistry: scdlang
repository: scdlang/scrap
tags: |
latest
$(build.tag)
# - task: Docker@2
# condition: and(contains(variables['target'], 'musl'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
# inputs:
# command: buildAndPush
# containerRegistry: scdlang
# repository: scdlang/scrap
# tags: |
# latest
# $(build.tag)

- task: GitHubRelease@0
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
inputs:
gitHubConnection: drsensor
title: $(Build.SourceVersionMessage)
repositoryName: $(Build.Repository.Name)
action: edit
tag: $(build.tag)
assets: $(Build.ArtifactStagingDirectory)/scrap-$(TARGET).tar.gz
assetUploadMode: replace
isDraft: true
addChangeLog: true
# - task: GitHubRelease@0
# condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
# inputs:
# gitHubConnection: drsensor
# title: $(Build.SourceVersionMessage)
# repositoryName: $(Build.Repository.Name)
# action: edit
# tag: $(build.tag)
# assets: $(Build.ArtifactStagingDirectory)/scrap-$(TARGET).tar.gz
# assetUploadMode: replace
# isDraft: true
# addChangeLog: true

# TODO: Split this as a separate job after GitHubRelease@0 done
# But it has a caveat, it need to install rust again :sad: (no build needed)
Expand Down

0 comments on commit 0769a32

Please sign in to comment.