Skip to content

Commit

Permalink
Test post build step again
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandreu committed Mar 13, 2019
1 parent 1924f34 commit 4e07b5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion PostBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ cd tmp
git clone --single-branch --branch info https://github.com/fernandreu/wpf-custom-ui-editor.git -q
cd wpf-custom-ui-editor
$version = [string]$args[0]
$pat = [string]$args[1]
Write-Host "Version passed is: $version"
$version | Out-File -Encoding UTF8 -FilePath .\RELEASE-VERSION
git commit -a -m "Update release version to $version" -q
git push https://github.com/fernandreu/wpf-custom-ui-editor.git info -q
git push https://$($pat)@github.com/fernandreu/wpf-custom-ui-editor.git info -q
4 changes: 3 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ variables:

steps:
- task: PowerShell@2
displayName: 'Pre-build steps'
inputs:
targetType: 'filePath'
filePath: 'PreBuild.ps1'
Expand Down Expand Up @@ -85,12 +86,13 @@ steps:
#parallelCount: # Optional

- task: PowerShell@2
displayName: 'Post-build steps'
# condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs:
targetType: 'filePath'
filePath: 'PostBuild.ps1'
# arguments: '"$(Build.SourceBranchName)"'
arguments: '"v1.2.3.4"'
arguments: '"v1.2.3.4" "$(GitHubPAT)"'

- task: GithubRelease@0
displayName: 'Create GitHub Release'
Expand Down

0 comments on commit 4e07b5f

Please sign in to comment.