mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 23:44:52 -04:00
Codesign only on master/develop and pull requests
This commit is contained in:
@ -12,6 +12,7 @@ jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
dependsOn: CodeFormatValidation
|
||||
variables:
|
||||
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(contains(variables['Build.SourceBranch'], 'merge'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||
- group: windows-codesign
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
@ -40,18 +41,26 @@ jobs:
|
||||
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
||||
nmake check TESTARGS="-maxwarnings 100000"
|
||||
displayName: 'Run tests'
|
||||
- task: DownloadSecureFile@1
|
||||
name: pfxFile
|
||||
displayName: 'Get the pfx file certificate'
|
||||
inputs:
|
||||
secureFile: 'certificate.pfx'
|
||||
- script: |
|
||||
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
||||
cd $(Build.SourcesDirectory)\ci\win
|
||||
.\create_installer.cmd ${{ parameters.architecture }} 7z $(Build.BuildNumber) qt6 $(Agent.TempDirectory)\certificate.pfx %PASSWORD%
|
||||
env:
|
||||
PASSWORD: $(pfxPassword)
|
||||
displayName: 'Create installer'
|
||||
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(contains(variables['Build.SourceBranch'], 'merge'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||
- task: DownloadSecureFile@1
|
||||
name: pfxFile
|
||||
displayName: 'Get the pfx file certificate'
|
||||
inputs:
|
||||
secureFile: 'certificate.pfx'
|
||||
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(contains(variables['Build.SourceBranch'], 'merge'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||
- script: |
|
||||
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
||||
cd $(Build.SourcesDirectory)\ci\win
|
||||
.\create_installer.cmd ${{ parameters.architecture }} 7z $(Build.BuildNumber) qt6 $(pfxFile.secureFilePath) %PASSWORD%
|
||||
env:
|
||||
PASSWORD: $(pfxPassword)
|
||||
displayName: 'Create installer'
|
||||
- ${{ else }}:
|
||||
- script: |
|
||||
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
||||
cd $(Build.SourcesDirectory)\ci\win
|
||||
.\create_installer.cmd ${{ parameters.architecture }} 7z $(Build.BuildNumber) qt6
|
||||
displayName: 'Create installer'
|
||||
- task: CopyFiles@2
|
||||
inputs:
|
||||
sourceFolder: $(Build.SourcesDirectory)\ci\win\Output\
|
||||
|
Reference in New Issue
Block a user