mirror of https://github.com/OpenTTD/OpenTTD
Fix: [AzurePipelines] manifest.sh didn't know when it was a stable release
In result, the name of the release was wrong, causing confusing in tools using the manifest.yaml.pull/7207/head
parent
0151fe998a
commit
13b7e8774d
|
@ -15,7 +15,7 @@ if [ ! -e .version ] || [ ! -e .release_date ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find the name based on the version
|
# Find the name based on the version
|
||||||
if [ "${ISSTABLERELEASE}" = "true" ]; then
|
if [ -e .is_stable ]; then
|
||||||
isTesting=$(cat .version | grep "RC\|beta" || true)
|
isTesting=$(cat .version | grep "RC\|beta" || true)
|
||||||
if [ -z "${isTesting}" ]; then
|
if [ -z "${isTesting}" ]; then
|
||||||
NAME="stable"
|
NAME="stable"
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
parameters:
|
||||||
|
IsStableRelease: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: 'Download all bundles'
|
displayName: 'Download all bundles'
|
||||||
|
@ -5,6 +8,10 @@ steps:
|
||||||
downloadType: specific
|
downloadType: specific
|
||||||
itemPattern: 'bundles/*'
|
itemPattern: 'bundles/*'
|
||||||
downloadPath: '$(Build.ArtifactStagingDirectory)'
|
downloadPath: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
- ${{ if eq(parameters.IsStableRelease, true) }}:
|
||||||
|
- script: |
|
||||||
|
touch .is_stable
|
||||||
|
displayName: 'Mark as stable release'
|
||||||
- script: |
|
- script: |
|
||||||
set -ex
|
set -ex
|
||||||
./azure-pipelines/manifest.sh ../a/bundles/
|
./azure-pipelines/manifest.sh ../a/bundles/
|
||||||
|
|
|
@ -164,6 +164,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- template: release-fetch-source.yml
|
- template: release-fetch-source.yml
|
||||||
- template: release-manifest.yml
|
- template: release-manifest.yml
|
||||||
|
${{ if eq(parameters.IsStableRelease, true) }}:
|
||||||
|
parameters:
|
||||||
|
IsStableRelease: true
|
||||||
- template: release-bundles.yml
|
- template: release-bundles.yml
|
||||||
parameters:
|
parameters:
|
||||||
CalculateChecksums: false
|
CalculateChecksums: false
|
||||||
|
|
Loading…
Reference in New Issue