Update .gitlab-ci.yml file
This commit is contained in:
parent
4c687785c7
commit
3b45bcadde
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user