From 45c280511d083f93b433e574a329ae83385dd1e8 Mon Sep 17 00:00:00 2001 From: Till Schneidereit Date: Tue, 6 Aug 2019 22:32:31 +0200 Subject: [PATCH] Delete old GitHub 'dev' release when creating a new one (#256) --- .azure-pipelines.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 68fa3e753c8e..db636201d328 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -231,7 +231,6 @@ jobs: inputs: gitHubConnection: 'tschneidereit-releases' repositoryName: 'cranestation/wasmtime' - action: 'edit' target: '$(Build.SourceVersion)' tagSource: 'manual' tag: '$(tagName)' @@ -244,7 +243,13 @@ jobs: inputs: gitHubConnection: 'tschneidereit-releases' repositoryName: 'cranestation/wasmtime' - action: 'edit' + action: 'delete' + tag: 'dev' + condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') + - task: GitHubRelease@0 + inputs: + gitHubConnection: 'tschneidereit-releases' + repositoryName: 'cranestation/wasmtime' target: '$(Build.SourceVersion)' tag: 'dev' title: 'Latest CI build'