fuzzyworld

template / commit

Moved windows-specific script into the release job.

4137a7b3147dbfd6668c85aa922c6dce5e0cf03c · Pavel Safronov · 2023-02-09 10:46:40 -0800 · parents 1c66e9f893bc

Moved windows-specific script into the release job.
 .gitlab-ci.yml | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 465dbd6..68ea19e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,18 +11,6 @@ stages:          # List of stages for jobs, and their order of execution
   - build-and-test
   - release
 
-before_script:
- - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
- - Set-Variable -Name "time" -Value (date -Format "%H:%m")
- - echo ${time}
- - echo "started by ${GITLAB_USER_NAME}"
- - choco upgrade chocolatey -y
- - choco upgrade golang -y
- - refreshenv
- - go version
- - choco install make
- - make --version
-
 build-job:
   stage: build-and-test
   script:
@@ -47,4 +35,14 @@ release:
       - tags
 
   script: 
+    - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
+    - Set-Variable -Name "time" -Value (date -Format "%H:%m")
+    - echo ${time}
+    - echo "started by ${GITLAB_USER_NAME}"
+    - choco upgrade chocolatey -y
+    - choco upgrade golang -y
+    - refreshenv
+    - go version
+    - choco install make
+    - make --version
     - make release
\ No newline at end of file