From 3b45bcadde649a68b05cc201a634844b2d2787bd Mon Sep 17 00:00:00 2001 From: WinterMyst <22961076-wintermyst@users.noreply.gitlab.com> Date: Sun, 22 Sep 2024 15:13:26 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f194d3..df8e4a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,6 +34,11 @@ release: # Install Gulp globally - npm install --global gulp-cli - gulp --version # Verify Gulp is installed + - git config --global user.name "GitLab CI" + - git config --global user.email "ci@gitlab.com" + - git fetch --unshallow # Ensure we fetch all history for the branch (not a shallow clone) + - git checkout master # Switch to the master branch + - git branch --set-upstream-to=origin/master master # Set the upstream to the master branch script: # Check if VERSION is provided - | @@ -69,11 +74,6 @@ release: # Update the system.json file with the release URL - | sed -i "s|\"download\":.*|\"download\": \"$RELEASE_URL\",|" system.json - - # Commit the updated system.json and push it to master - - git config --global user.name "GitLab CI" - - git config --global user.email "ci@gitlab.com" - - git branch --set-upstream-to=origin/master master - git add system.json - git commit -m "Update system.json with release URL" - git push origin master