From f6c178e5ed574d28616d27952771b9ad6aaf4a66 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Tue, 31 Jan 2023 10:08:27 +0000 Subject: [PATCH] ci: release hashsum --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4cf4e91..a0dfd2d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,6 +49,8 @@ upload: script: - | curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${ADDON_PACKAGE} ${PACKAGE_REGISTRY_URL}/${ADDON_PACKAGE} + sha256sum "$ADDON_PACKAGE" > "${ADDON_PACKAGE}.sha256sum" + curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${ADDON_PACKAGE}.sha256sum" "${PACKAGE_REGISTRY_URL}/${ADDON_PACKAGE}.sha256sum" release_job: stage: release @@ -64,3 +66,5 @@ release_job: links: - name: ${ADDON_PACKAGE} url: "${PACKAGE_REGISTRY_URL}/${ADDON_PACKAGE}" + - name: ${ADDON_PACKAGE}.sha256sum + url: "${PACKAGE_REGISTRY_URL}/${ADDON_PACKAGE}.sha256sum"