From d237c84f7d230706cc61059608cbbc09e6d7f886 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 27 Sep 2022 19:27:07 +0200 Subject: [PATCH] [ci] Add release link to uploaded package --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 862221e..1ee3f98 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,6 +45,8 @@ package_linux: upload: stage: deploy image: curlimages/curl:latest + rules: + - if: $CI_COMMIT_TAG script: - | curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${LINUX_AMD64_BINARY}" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}" @@ -60,3 +62,9 @@ release_job: tag_name: $CI_COMMIT_TAG name: 'Release $CI_COMMIT_TAG' description: 'Release created using the release-cli.' + assets: + links: + - name: "${LINUX_AMD64_BINARY}" + url: "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}" + filepath: "/bin/${LINUX_AMD64_BINARY}" + link_type: package