summaryrefslogtreecommitdiff
path: root/azure-pipelines/templates/release-fetch-source.yml
diff options
context:
space:
mode:
Diffstat (limited to 'azure-pipelines/templates/release-fetch-source.yml')
-rw-r--r--azure-pipelines/templates/release-fetch-source.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/azure-pipelines/templates/release-fetch-source.yml b/azure-pipelines/templates/release-fetch-source.yml
new file mode 100644
index 000000000..8b4398306
--- /dev/null
+++ b/azure-pipelines/templates/release-fetch-source.yml
@@ -0,0 +1,20 @@
+# Fetch the source tarball as prepared by an earlier job. In there is the
+# version predefined. This ensures we are all going to compile the same
+# source with the same version.
+
+steps:
+- checkout: none
+- task: DownloadBuildArtifacts@0
+ displayName: 'Download source'
+ inputs:
+ downloadType: specific
+ itemPattern: 'bundles/openttd-*-source.tar.xz'
+ downloadPath: '$(Build.ArtifactStagingDirectory)'
+- bash: tar --xz -xf ../a/bundles/openttd-*-source.tar.xz --strip-components=1
+ displayName: 'Extracting source'
+- bash: |
+ set -e
+ VERSION=$(cat .version)
+ echo "${VERSION}"
+ echo "##vso[build.updatebuildnumber]${VERSION}"
+ displayName: 'Change BuildNumber to version'