diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 736efd60de37aa309d86e9a3eef637a7db5bdb12..65583c8371da04f24ac5653915a7206b0594f1f3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,15 +3,32 @@
 # TODO: Lint check for arduino
 # TODO: Arduino-build
 
+# .setup_env: &setup_env
+#   - echo "Setup the environment"
+
 stages:
   - release
 
+# build:
+#   stage: build
+#   before_script:
+#     - *setup_env
+#   script:
+#     - echo "Building Arduino code"
+#
+# lint:
+#   stage: test
+#   before_script:
+#     - *setup_env
+#   script:
+#     - echo "Style verification"
+
 # 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
+    - if: '$CI_COMMIT_REF_NAME == "main" && $CI_COMMIT_TAG'
   script:
     - echo "running release_job"
   release: