From 3c4c19b56275940edcbc7cccf4800e9ce2b69326 Mon Sep 17 00:00:00 2001
From: Thibault Debatty <t.debatty@cylab.be>
Date: Mon, 23 Jan 2023 13:29:02 +0100
Subject: [PATCH] (try to) upload whl package

---
 .gitlab-ci.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6f48aad..f27e5d7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ stages:
 - test
 - build
 - release
+- upload
 
 
 ## https://cylab.be/blog/18/gitlab-automatically-testing-your-python-project
@@ -51,3 +52,13 @@ release:
     tag_name: '$CI_COMMIT_TAG'
     description: '$CI_COMMIT_TAG'
 
+upload:
+  stage: upload
+  image: curlimages/curl:latest
+  rules:
+    - if: $CI_COMMIT_TAG
+  script:
+    - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/dokos-$CI_COMMIT_TAG-py3-none-any.whl" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/$CI_COMMIT_TAG/dokos-$CI_COMMIT_TAG-py3-none-any.whl"'
+
+
+
-- 
GitLab