From 1e1fa7b5950234133605027dc5562655871b8261 Mon Sep 17 00:00:00 2001
From: Thomas Lambert <t.lambert@uliege.be>
Date: Wed, 23 Nov 2022 14:33:55 +0100
Subject: [PATCH] ci: add automatic release

---
 .gitlab-ci.yml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..c45edad
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,17 @@
+---
+# Automatic release creation
+# TODO: Lint check for arduino
+# TODO: Arduino-build
+
+# https://docs.gitlab.com/ee/user/project/releases/release_cicd_examples.html
+release_job:
+  stage: release
+  image: registry.gitlab.com/gitlab-org/release-cli:latest
+  rules:
+    - if: $CI_COMMIT_TAG   # Run this job when a tag is created
+  script:
+    - echo "running release_job"
+  release:
+    tag_name: '$CI_COMMIT_TAG'
+    name: 'Release $CI_COMMIT_TAG'
+    description: 'Automatic release for $CI_COMMIT_TAG.'
-- 
GitLab