From 8723a7b5dd6e2ea99c2ce211eec69e4ee4ec9296 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 13 Sep 2023 20:49:47 -0500 Subject: [PATCH] ci: use link_type other for release --- .gitlab-ci.yml | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2a8f531..5276c24 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,8 +20,6 @@ build: artifacts: paths: - "${RESUME_FILE}" - - upload: stage: upload needs: @@ -31,7 +29,6 @@ upload: image: curlimages/curl:latest script: - 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${RESUME_FILE}" ${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${RESUME_FILE}' - - 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${RESUME_FILE}" ${PACKAGE_REGISTRY_URL}/latest/${RESUME_FILE}' tag-release: stage: release @@ -50,32 +47,5 @@ tag-release: links: - name: "${RESUME_FILE}" url: "${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${RESUME_FILE}" - -remove-latest-release: - stage: release - needs: - - upload - image: curlimages/curl:latest - rules: - - if: $CI_COMMIT_TAG - script: - - echo "Removing current latest tag" - - 'curl --request DELETE --header "JOB-TOKEN: ${CI_JOB_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases/latest"' - -latest-release: - stage: release - needs: - - remove-latest-release - image: registry.gitlab.com/gitlab-org/release-cli:latest - script: - - echo "Releasing Resume @ latest" - rules: - - if: $CI_COMMIT_TAG - release: - tag_name: latest - description: latest - ref: "${CI_COMMIT_SHA}" - assets: - links: - - name: "${RESUME_FILE}" - url: "${PACKAGE_REGISTRY_URL}/latest/${RESUME_FILE}" + filepath: /resume.pdf + link_type: other