Skip to content

Commit 7b75a7d

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 83501c0 commit 7b75a7d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,25 @@ steps:
3232
inputs:
3333
platform: '$(buildPlatform)'
3434
configuration: '$(buildConfiguration)'
35+
36+
# GitHubRelease
37+
# - task: PowerShell@2
38+
# displayName: 'Get latest SHA commmit from repo'
39+
# inputs:
40+
# targetType: 'inline'
41+
# script: |
42+
# $commits = Invoke-RestMethod -Method GET -Uri "https://api.github.com/repos/Account/repo/commits"
43+
# $sha = $commits[0].sha
44+
# Write-Host "##vso[task.setvariable variable=sha;]$sha"
45+
46+
# - task: GitHubRelease@1
47+
# inputs:
48+
# gitHubConnection: 'example_github'
49+
# repositoryName: 'cpoDesign/APITestingRunner'
50+
# action: 'create'
51+
# target: '$(sha)'
52+
# tagSource: 'userSpecifiedTag'
53+
# tag: '$(tag)'
54+
# title: 'v$(tag)'
55+
# assets: '$(Build.ArtifactStagingDirectory)\release\*.exe'
56+
# addChangeLog: false

0 commit comments

Comments
 (0)