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