mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Update powershell script
This commit is contained in:
parent
28e40544c4
commit
4d17c077e5
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ steps:
|
|||
- bash: ls ${ARTIFACT_STAGING_DIRECTORY}
|
||||
env:
|
||||
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory))
|
||||
- pwsh: if( (Get-ChildItem $(Build.ArtifactStagingDirectory) | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' }
|
||||
- pwsh: if( (Get-ChildItem $ENV:ARTIFACT_STAGING_DIRECTORY | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' }
|
||||
env:
|
||||
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory))
|
||||
# delete the release if it already exists to avoid an error
|
||||
- task: GitHubRelease@0
|
||||
condition: and(succeeded(), eq(variables['buildSuccess'], 'true') )
|
||||
|
|
Loading…
Reference in a new issue