mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
Merge pull request #130 from YACReader/fix/skip_macos_sign_on_prs
Skip macos sign on PRs
This commit is contained in:
commit
60441c3c4a
@ -4,8 +4,8 @@ trigger:
|
|||||||
- develop
|
- develop
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
is_original_repo: ${{ eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/') }}
|
is_original_repo: ${{ and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}
|
||||||
is_fork: ${{ not(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/')) }}
|
is_fork: ${{ not(and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop')))) }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: Initialization
|
- job: Initialization
|
||||||
@ -63,7 +63,7 @@ jobs:
|
|||||||
- job: MacOS
|
- job: MacOS
|
||||||
dependsOn: CodeFormatValidation
|
dependsOn: CodeFormatValidation
|
||||||
variables:
|
variables:
|
||||||
- ${{ if eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/') }}:
|
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||||
- group: macos-codesign
|
- group: macos-codesign
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'macOS-10.15'
|
vmImage: 'macOS-10.15'
|
||||||
@ -79,7 +79,7 @@ jobs:
|
|||||||
tar xjf $(Build.SourcesDirectory)/compressed_archive/p7zip_16.02_src_all.tar.bz2 -C $(Build.SourcesDirectory)/compressed_archive
|
tar xjf $(Build.SourcesDirectory)/compressed_archive/p7zip_16.02_src_all.tar.bz2 -C $(Build.SourcesDirectory)/compressed_archive
|
||||||
mv $(Build.SourcesDirectory)/compressed_archive/p7zip_16.02 $(Build.SourcesDirectory)/compressed_archive/libp7zip
|
mv $(Build.SourcesDirectory)/compressed_archive/p7zip_16.02 $(Build.SourcesDirectory)/compressed_archive/libp7zip
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
- ${{ if eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/') }}:
|
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||||
- task: InstallAppleCertificate@2
|
- task: InstallAppleCertificate@2
|
||||||
inputs:
|
inputs:
|
||||||
certSecureFile: 'developerID_application.p12'
|
certSecureFile: 'developerID_application.p12'
|
||||||
@ -120,7 +120,7 @@ jobs:
|
|||||||
vc_redist_file_name: 'vc_redist.x86.exe'
|
vc_redist_file_name: 'vc_redist.x86.exe'
|
||||||
vc_vars: 'vcvars32.bat'
|
vc_vars: 'vcvars32.bat'
|
||||||
|
|
||||||
- ${{ if eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/') }}:
|
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||||
- job: PublishDevBuilds
|
- job: PublishDevBuilds
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- Linux
|
- Linux
|
||||||
@ -149,7 +149,7 @@ jobs:
|
|||||||
remotePath: ''
|
remotePath: ''
|
||||||
url: https://api.bintray.com/content/luisangelsm/YACReader/DevBuilds/$(Build.BuildNumber)/
|
url: https://api.bintray.com/content/luisangelsm/YACReader/DevBuilds/$(Build.BuildNumber)/
|
||||||
|
|
||||||
- ${{ if eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/') }}:
|
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||||
- job: Release
|
- job: Release
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- Linux
|
- Linux
|
||||||
|
Loading…
Reference in New Issue
Block a user