From 605ed5d1af1e73ba4acf1904610f90e8d3324fd6 Mon Sep 17 00:00:00 2001
From: christophe <christophe.junke@cea.fr>
Date: Mon, 12 Feb 2024 17:27:12 +0100
Subject: [PATCH] Fix release file upload

---
 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cc8d46803..4d08bfada 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -49,13 +49,13 @@ prepare-release:
     - if: $CI_PIPELINE_SOURCE == "trigger"
   variables:
     ARCHIVE_NAME: '$PROJECT.$TAG.tbz'
-    PACKAGE_URI: '$PROJECT_URI/$PROJECT/$TAG/$ARCHIVE_NAME'
+    PACKAGE_URI: '$PROJECT_URI/packages/generic/$PROJECT/$TAG/$ARCHIVE_NAME'
   script:
     - apt-get update
     - apt-get install -y curl
     - sed -n -f changelog.sed CHANGES.md > description.txt
     - |
-      curl --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" --upload-file bundle.tbz "$PACKAGE_URI"
+      curl --fail --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bundle.tbz "$PACKAGE_URI"
   artifacts:
     paths:
       - description.txt
@@ -69,7 +69,7 @@ release:
     - if: $CI_PIPELINE_SOURCE == "trigger"
   variables:
     ARCHIVE_NAME: '$PROJECT.$TAG.tbz'
-    PACKAGE_URI: '$PROJECT_URI/$PROJECT/$TAG/$ARCHIVE_NAME'
+    PACKAGE_URI: '$PROJECT_URI/packages/generic/$PROJECT/$TAG/$ARCHIVE_NAME'
   script:
     - echo "Release job for tag $TAG"
   release:
-- 
GitLab