Skip to content

Commit

Permalink
add github auto release for main branch (#129)
Browse files Browse the repository at this point in the history
* add tag version
  • Loading branch information
qiwjin authored Dec 14, 2020
1 parent d224895 commit 483d847
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: $(Date:yyyyMMdd)$(Rev:.r)

trigger:
- main
- master
- dotliquid
- refs/heads/dotliquid
pr: ['dotliquid']
Expand Down Expand Up @@ -53,6 +55,16 @@ stages:
publishWebProjects: false
zipAfterPublish: false

- task: DotNetCoreCLI@2
displayName: 'publish github release bin'
inputs:
command: 'publish'
projects: '$(publishProject)'
arguments: '--configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)/bin'
nobuild: true
publishWebProjects: false
zipAfterPublish: true

- task: DotNetCoreCLI@2
displayName: 'publish functional tests'
inputs:
Expand Down Expand Up @@ -159,6 +171,7 @@ stages:
container: registry

- stage: Release
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/main'))
jobs:
- job: publish
pool:
Expand All @@ -170,6 +183,19 @@ stages:
inputs:
artifactName: FhirConverterBuild
downloadPath: $(System.DefaultWorkingDirectory)
- script: echo [TODO] push nuget and image

- task: GithubRelease@0
displayName: 'Create GitHub Release'
inputs:
gitHubConnection: githubpipeline
repositoryName: microsoft/FHIR-Converter
isDraft: true
tagSource: manual
tag: v$(major).$(minor).$(bulidnum)
assets: |
$(System.DefaultWorkingDirectory)/FhirConverterBuild/bin/**
$(System.DefaultWorkingDirectory)/FhirConverterBuild/data/Templates/DefaultTemplates.tar.gz

0 comments on commit 483d847

Please sign in to comment.