Update .gitlab-ci.yml file

This commit is contained in:
WinterMyst 2024-09-23 16:09:50 +00:00
parent 9bd1ae3602
commit 9ecc7d5573

View File

@ -42,6 +42,10 @@ release:
# Install release-cli # Install release-cli
- curl -sSL -o /usr/local/bin/release-cli https://gitlab.com/gitlab-org/release-cli/-/releases/v0.17.0/downloads/release-cli-linux-amd64 - curl -sSL -o /usr/local/bin/release-cli https://gitlab.com/gitlab-org/release-cli/-/releases/v0.17.0/downloads/release-cli-linux-amd64
- chmod +x /usr/local/bin/release-cli - chmod +x /usr/local/bin/release-cli
- release-cli --version
- git fetch --all
- git switch master
- git branch --set-upstream-to=origin/master master
script: script:
# Check if VERSION is provided # Check if VERSION is provided
- | - |
@ -57,6 +61,7 @@ release:
# Update system.json with the release URL # Update system.json with the release URL
- | - |
sed -i "s|\"download\":.*|\"download\": \"https://gitlab.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/-/releases/v$VERSION/download\",|" system.json sed -i "s|\"download\":.*|\"download\": \"https://gitlab.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/-/releases/v$VERSION/download\",|" system.json
- grep '"download":' system.json
- git config --global user.name "GitLab CI" - git config --global user.name "GitLab CI"
- git config --global user.email "ci@gitlab.com" - git config --global user.email "ci@gitlab.com"
- git add system.json - git add system.json