2020-12-14 22:51:53 +01:00
|
|
|
trigger: none
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-latest'
|
|
|
|
|
|
|
|
steps:
|
2020-12-16 20:14:06 +01:00
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
inputs:
|
|
|
|
command: 'custom'
|
2020-12-16 21:04:08 +01:00
|
|
|
custom: 'tool'
|
2020-12-16 20:14:06 +01:00
|
|
|
arguments: 'install --global azuresigntool'
|
|
|
|
displayName: 'install AzureSignTool'
|
|
|
|
|
2020-12-14 22:51:53 +01:00
|
|
|
- task: DownloadGitHubRelease@0
|
|
|
|
inputs:
|
2020-12-14 23:20:39 +01:00
|
|
|
connection: joseph-flinn
|
|
|
|
userRepository: joseph-flinn/desktop
|
2020-12-14 23:38:56 +01:00
|
|
|
displayName: 'git release artifacts'
|
2020-12-14 22:51:53 +01:00
|
|
|
|
2020-12-16 20:50:31 +01:00
|
|
|
- bash: |
|
|
|
|
GIT_RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/joseph-flinn/desktop/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
|
|
|
|
echo "##vso[task.setvariable variable=git_release_version]$GIT_RELEASE_VERSION"
|
2020-12-16 21:04:08 +01:00
|
|
|
displayName: 'set git_release_version'
|
2020-12-16 20:50:31 +01:00
|
|
|
|
2020-12-14 22:51:53 +01:00
|
|
|
- script: |
|
2020-12-16 20:14:06 +01:00
|
|
|
ls -alh $(System.ArtifactsDirectory)
|
|
|
|
echo GIT_RELEASE_VERSION=$GIT_RELEASE_VERSION
|
|
|
|
displayName: 'show artifacts'
|
2020-12-14 23:38:56 +01:00
|
|
|
|
2020-12-16 20:14:06 +01:00
|
|
|
#- task: CmdLine@2
|
|
|
|
# displayName: 'Sign *.appx artifacts'
|
|
|
|
# inputs:
|
|
|
|
# script: AzureSignTool sign -du "$(SigningURL)" -kvu "$(SigningVaultURL)" -kvi "$(SigningClientId)" -kvs "$(SigningClientSecret)" -kvc "$(SigningCertName)" -v "$(System.ArtifactsDirectory)\\*"
|
|
|
|
#
|
|
|
|
#- task: PublishPipelinArtifact@1
|
|
|
|
# inputs:
|
|
|
|
# pathToPublish: '$(System.DefaultWorkingDirectory)/dist/Bitwarden-$(GIT_RELEASE_VERSION)-ia32.appx'
|
|
|
|
# artifactName: 'Bitwarden-$(GIT_RELEASE_VERSION)-ia32.appx'
|
|
|
|
#
|
|
|
|
#- task: PublishPipelinArtifact@1
|
|
|
|
# inputs:
|
|
|
|
# pathToPublish: '$(System.DefaultWorkingDirectory)/dist/Bitwarden-$(GIT_RELEASE_VERSION)-x64.appx'
|
|
|
|
# artifactName: 'Bitwarden-$(GIT_RELEASE_VERSION)-x64.appx'
|