1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01:00
bitwarden-browser/.az-pipelines/sign-windows-artifacts.yml
2020-12-16 19:33:14 +00:00

41 lines
1.3 KiB
YAML

trigger: none
pool:
vmImage: 'windows-latest'
variables:
gitReleaseVersion: $[ curl --silent "https://api.github.com/repos/joseph-flinn/desktop/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' ]
steps:
- task: DotNetCoreCLI@2
inputs:
command: 'custom'
arguments: 'install --global azuresigntool'
displayName: 'install AzureSignTool'
- task: DownloadGitHubRelease@0
inputs:
connection: joseph-flinn
userRepository: joseph-flinn/desktop
displayName: 'git release artifacts'
- script: |
ls -alh $(System.ArtifactsDirectory)
echo GIT_RELEASE_VERSION=$GIT_RELEASE_VERSION
displayName: 'show artifacts'
#- 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'