Skip to content

Commit

Permalink
Link CD to GitHub environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetseckin committed Feb 22, 2020
1 parent 402a38b commit e8099f6
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions pipelines/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,27 @@ stages:
artifactsDirectory: '$(Pipeline.Workspace)/artifacts'
dependsOn: ['cd_build']
jobs:
- job: 'release_job'
steps:
- script: mkdir $(artifactsDirectory)
displayName: 'Create $(artifactsDirectory) directory'
- task: DownloadPipelineArtifact@2
displayName: 'Download all artifacts'
inputs:
targetPath: '$(artifactsDirectory)'
- task: GitHubRelease@1
inputs:
gitHubConnection: 'azure-pipelines-github-release'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
assets: $(artifactsDirectory)/Solutions/*.zip
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
isPreRelease: false
- deployment: 'release_job'
environment: GitHub
strategy:
runOnce:
deploy:
steps:
- script: mkdir $(artifactsDirectory)
displayName: 'Create $(artifactsDirectory) directory'
- task: DownloadPipelineArtifact@2
displayName: 'Download all artifacts'
inputs:
targetPath: '$(artifactsDirectory)'
- task: GitHubRelease@1
inputs:
gitHubConnection: 'azure-pipelines-github-release'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
assets: $(artifactsDirectory)/Solutions/*.zip
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
isPreRelease: false

0 comments on commit e8099f6

Please sign in to comment.