1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-30 13:03:53 +01:00

testing the GIT_RELEASE_VERSION var

This commit is contained in:
Joseph Flinn 2020-12-16 19:14:06 +00:00
parent 462b49daa3
commit 378454ce03

View File

@ -3,20 +3,39 @@ trigger: none
pool: pool:
vmImage: 'windows-latest' vmImage: 'windows-latest'
variables:
- name: GIT_RELEASE_VERSION
value: curl --silent "https://api.github.com/repos/joseph-flinn/desktop/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")'
steps: steps:
- task: DotNetCoreCLI@2
inputs:
command: 'custom'
arguments: 'install --global azuresigntool'
displayName: 'install AzureSignTool'
- task: DownloadGitHubRelease@0 - task: DownloadGitHubRelease@0
inputs: inputs:
connection: joseph-flinn connection: joseph-flinn
userRepository: joseph-flinn/desktop userRepository: joseph-flinn/desktop
displayName: 'git release artifacts' displayName: 'git release artifacts'
- script: ls -alh $(System.ArtifactsDirectory) - script: |
ls -alh $(System.ArtifactsDirectory)
echo GIT_RELEASE_VERSION=$GIT_RELEASE_VERSION
displayName: 'show artifacts' displayName: 'show artifacts'
- script: | #- task: CmdLine@2
echo 'Signing artifacts' # displayName: 'Sign *.appx artifacts'
displayName: 'sign artifacts' # inputs:
# script: AzureSignTool sign -du "$(SigningURL)" -kvu "$(SigningVaultURL)" -kvi "$(SigningClientId)" -kvs "$(SigningClientSecret)" -kvc "$(SigningCertName)" -v "$(System.ArtifactsDirectory)\\*"
- script: | #
echo 'Publishing artifacts' #- task: PublishPipelinArtifact@1
displayName: 'publish artifacts' # 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'