diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 70f41bc841fef797f60350032c50e96f2d99fe9b..ba4034073bc7b2c89bb83b49a2f2a5ff70753c67 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,7 +31,7 @@ docs:
 cake:Release:
   stage: release
   script:
-    - PowerShell .\build.ps1 -Target Release -Configuration Release --nugetApiKey="${NUGET_API_KEY}"
+    - PowerShell .\build.ps1 -Target Release -Configuration Release --nugetApiKey="$NUGET_API_KEY"
   variables:
     GIT_STRATEGY: clone
   dependencies: