trigger: none pool: vmImage: 'windows-latest' steps: - task: DotNetCoreCLI@2 inputs: command: 'custom' custom: 'tool' arguments: 'install --global azuresigntool' displayName: 'install AzureSignTool' - task: DownloadGitHubRelease@0 inputs: connection: joseph-flinn userRepository: joseph-flinn/desktop displayName: 'git release artifacts' - bash: | GIT_RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/joseph-flinn/desktop/releases/latest" | awk -F '"' '/tag_name/{print $4}' | awk '{print substr($1, 2); }') echo "##vso[task.setvariable variable=git_release_version]$GIT_RELEASE_VERSION" displayName: 'set git_release_version' - 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'