From c03a268fe7615c31c072a5f0050634bdd7a27b4e Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 27 Sep 2022 22:37:25 +0200 Subject: [PATCH] [ci] Publish windows builds to releases/packages --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae909e1..34e36c2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,6 +51,9 @@ package_windows: - shared-windows - windows - windows-1809 + # takes forever, so only run if it is worthwhile + rules: + - if: $CI_COMMIT_TAG before_script: - choco install python --version=$PYTHON_VERSION -y --no-progress - C:\\Python310\\python.exe --version @@ -72,6 +75,8 @@ upload: script: - | curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${LINUX_AMD64_BINARY}" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}" + - | + curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${WINDOWS_AMD64_BINARY}.exe" "${PACKAGE_REGISTRY_URL}/${WINDOWS_AMD64_BINARY}.exe" release_job: stage: release @@ -90,3 +95,7 @@ release_job: url: "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}" filepath: "/bin/fime_linux_amd64" link_type: package + - name: "${WINDOWS_AMD64_BINARY}.exe" + url: "${PACKAGE_REGISTRY_URL}/${WINDOWS_AMD64_BINARY}.exe" + filepath: "/bin/fime_windows_amd64.exe" + link_type: package