diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0ff50da0c256724747f4f7e1c90b91d3b3fa0f1d..adcf560efcca2d8043f5a98950336d43ac9df551 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -432,4 +432,4 @@ release-gitlab:
   before_script:
     - "apk add bash curl"
   script:
-    - bash -ec "curl -fsSL -X POST -H \"Content-Type: application/json\" -H \"PRIVATE-TOKEN: ${CI_TOKEN}\" --data '{\"name\": \"v${APP_VERSION}\", \"tag_name\": \"v${APP_VERSION}\", \"ref\": \"${CI_COMMIT_BRANCH}\", \"description\": \"Automated release from CI/CD\"}' https://gitlab.phaidra.org/api/v4/projects/450/releases"
\ No newline at end of file
+    - bash ./.gitlab/release-gitlab.sh
\ No newline at end of file
diff --git a/.gitlab/release-gitlab.sh b/.gitlab/release-gitlab.sh
new file mode 100644
index 0000000000000000000000000000000000000000..b7704d4eb9339e5028da63039e5656138f9ae8db
--- /dev/null
+++ b/.gitlab/release-gitlab.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+GITLAB_URL="https://gitlab.phaidra.org"
+curl -fsSL \
+  -X POST \
+  -H "Content-Type: application/json" \
+  -H "PRIVATE-TOKEN: ${CI_TOKEN}" \
+  -d '{"name": "v${APP_VERSION}", "tag_name": "v${APP_VERSION}", "ref": "${CI_COMMIT_BRANCH}", "description": "Automated release from CI/CD"}' \
+  ${GITLAB_URL}/api/v4/projects/450/releases