Only do Official Releases in OneBranch (#3806)

This commit is contained in:
Nick Banks 2023-08-11 07:43:38 -07:00 коммит произвёл GitHub
Родитель 09eff16e01
Коммит cf4537c3dc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 12 добавлений и 9 удалений

Просмотреть файл

@ -32,7 +32,7 @@ jobs:
inputs:
pwsh: true
filePath: scripts/build.ps1
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch x64 -CI -UseSystemOpenSSLCrypto -OneBranch
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch x64 -CI -UseSystemOpenSSLCrypto -OneBranch -OfficialRelease
- task: PowerShell@2
displayName: arm64
${{ if eq(parameters.tls, 'openssl') }}:
@ -42,7 +42,7 @@ jobs:
inputs:
pwsh: true
filePath: scripts/build.ps1
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch arm64 -CI -UseSystemOpenSSLCrypto -OneBranch
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch arm64 -CI -UseSystemOpenSSLCrypto -OneBranch -OfficialRelease
- task: PowerShell@2
displayName: arm
${{ if eq(parameters.tls, 'openssl') }}:
@ -52,4 +52,4 @@ jobs:
inputs:
pwsh: true
filePath: scripts/build.ps1
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch arm -CI -UseSystemOpenSSLCrypto -OneBranch
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch arm -CI -UseSystemOpenSSLCrypto -OneBranch -OfficialRelease

Просмотреть файл

@ -26,7 +26,7 @@ jobs:
inputs:
pwsh: true
filePath: scripts/build.ps1
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch x64 -CI -UseXdp -ExtraArtifactDir xdp
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch x64 -CI -UseXdp -ExtraArtifactDir xdp -OfficialRelease
- task: onebranch.pipeline.signing@1
target: windows_build_container2
inputs:

Просмотреть файл

@ -19,7 +19,7 @@ jobs:
inputs:
pwsh: true
filePath: scripts/build.ps1
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch x64 -CI
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch x64 -CI -OfficialRelease
- task: PowerShell@2
displayName: x86
condition: ne('${{ parameters.platform }}', 'gamecore_console')
@ -27,7 +27,7 @@ jobs:
inputs:
pwsh: true
filePath: scripts/build.ps1
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch x86 -CI
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch x86 -CI -OfficialRelease
- task: PowerShell@2
displayName: ARM
condition: ne('${{ parameters.platform }}', 'gamecore_console')
@ -35,7 +35,7 @@ jobs:
inputs:
pwsh: true
filePath: scripts/build.ps1
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch arm -CI
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch arm -CI -OfficialRelease
- task: PowerShell@2
displayName: ARM64
condition: and(ne('${{ parameters.platform }}', 'gamecore_console'), ne('${{ parameters.tls }}', 'openssl'))
@ -43,7 +43,7 @@ jobs:
inputs:
pwsh: true
filePath: scripts/build.ps1
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch arm64 -CI
arguments: -Tls ${{ parameters.tls }} -Config ${{ parameters.config }} -Platform ${{ parameters.platform }} -Arch arm64 -CI -OfficialRelease
- task: PowerShell@2
displayName: Write Versions
target: windows_build_container2

Просмотреть файл

@ -271,7 +271,10 @@ if ($Platform -eq "ios" -and !$Static) {
Write-Host "iOS can only be built as static"
}
if (!$OfficialRelease) {
if ($OfficialRelease) {
# We only actually try to do official release if there is a matching git tag.
# Clear the flag and then only set it if we find a tag.
$OfficialRelease = $false
try {
$env:GIT_REDIRECT_STDERR = '2>&1'
# Thanks to https://stackoverflow.com/questions/3404936/show-which-git-tag-you-are-on