mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
pipeline file changes
This commit is contained in:
parent
703edd3f3e
commit
f1a91fec82
1 changed files with 26 additions and 0 deletions
|
|
@ -49,6 +49,32 @@ stages:
|
|||
script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String'
|
||||
pwsh: true
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Tag Files
|
||||
env:
|
||||
DEPLOY_BUILDNUMBER: $(Build.BuildNumber)
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
$appVersion = $env:DEPLOY_BUILDNUMBER
|
||||
$tag = "v$appVersion"
|
||||
|
||||
#Write-Host "Setting up the global configuration"
|
||||
#git config --global user.email "${{parameters.GitEmail}}"
|
||||
#git config --global user.name "${{parameters.GitUsername}}"
|
||||
|
||||
Write-Host "Performing Git Tag Delete"
|
||||
git tag -d $tag
|
||||
git push origin :refs/tags/$tag
|
||||
|
||||
Write-Host "Performing Git Tag"
|
||||
git tag $tag
|
||||
|
||||
Write-Host "Performing Git Tag Push"
|
||||
git push --tags
|
||||
pwsh: true
|
||||
workingDirectory: '$(Build.SourcesDirectory)'
|
||||
|
||||
- task: NuGetToolInstaller@1
|
||||
displayName: Install NuGet 4.4.1
|
||||
inputs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue