Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
ryannewington committed Mar 18, 2023
1 parent cfe169d commit 31b0790
Showing 1 changed file with 30 additions and 39 deletions.
69 changes: 30 additions & 39 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,48 +328,39 @@ stages:

- stage:
jobs:
- deployment:
strategy:
runOnce:
deploy:
pool:
vmimage: 'windows-latest'
steps:
- task: GitHubRelease@1
inputs:
gitHubConnection: 'github.com'
repositoryName: 'lithnet/ad-password-protection'
action: 'create'
target: '$(Build.SourceVersion)'
tag: 'v$(build.version)'
title: 'v$(build.version)'
releaseNotesSource: 'inline'
assets: '$(Build.ArtifactStagingDirectory)/installer/*'
isPreRelease: true
addChangeLog: false
- job:
steps:
- task: GitHubRelease@1
inputs:
gitHubConnection: 'github.com'
repositoryName: 'lithnet/ad-password-protection'
action: 'create'
target: '$(Build.SourceVersion)'
tag: 'v$(build.version)'
title: 'v$(build.version)'
releaseNotesSource: 'inline'
assets: '$(Build.ArtifactStagingDirectory)/installer/*'
isPreRelease: true
addChangeLog: false

- template: publish-packages.yml
parameters:
deploymentType: prod

- stage:
jobs:
- deployment:
strategy:
runOnce:
deploy:
pool:
vmimage: 'windows-latest'
steps:
- task: GitHubRelease@1
inputs:
gitHubConnection: 'github.com'
repositoryName: 'lithnet/ad-password-protection'
action: 'edit'
target: '$(Build.SourceVersion)'
tag: 'v$(build.version)'
title: 'v$(build.version)'
releaseNotesSource: 'inline'
isPreRelease: false
assets: '$(Build.ArtifactStagingDirectory)/installer/*'
assetUploadMode: 'replace'
addChangeLog: false
- job:
steps:
- task: GitHubRelease@1
inputs:
gitHubConnection: 'github.com'
repositoryName: 'lithnet/ad-password-protection'
action: 'edit'
target: '$(Build.SourceVersion)'
tag: 'v$(build.version)'
title: 'v$(build.version)'
releaseNotesSource: 'inline'
isPreRelease: false
assets: '$(Build.ArtifactStagingDirectory)/installer/*'
assetUploadMode: 'replace'
addChangeLog: false

0 comments on commit 31b0790

Please sign in to comment.