diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-01-14 17:17:09 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-01-14 17:17:09 +0300 |
commit | b79a219d0975ca5a322c1a754901b290facacc89 (patch) | |
tree | 2c36efe223b19ee026da612b655fcb76dbbfe0df /.gitlab-ci.yml | |
parent | f5c36b360698b20600aecfdc09bb4890b215d71f (diff) |
ci: Execute release in a separate step
So that if it fails the website publishing does not fail
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 864543b43..fc2f04f86 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -146,7 +146,7 @@ deploy-flatpak: - git commit -m "$CI_COMMIT_TAG" - git push -publish-release: +publish-website: image: git-deploy:latest stage: publish dependencies: [] @@ -156,7 +156,6 @@ publish-release: - eval $(ssh-agent -s) - .ci/prepare_git.sh dev.gajim.org "${WEBSITE_DEPLOY_KEY}" script: - - .ci/make_release.py $CI_COMMIT_TAG "${PROJECT_TOKEN}" - git clone git@dev.gajim.org:gajim/website.git - cd website - git checkout master @@ -165,3 +164,12 @@ publish-release: - git add -u - git commit -m "Release Gajim $CI_COMMIT_TAG" - git push + +publish-release: + image: git-deploy:latest + stage: publish + dependencies: [] + rules: + - if: '$CI_COMMIT_TAG' + script: + - .ci/make_release.py $CI_COMMIT_TAG "${PROJECT_TOKEN}" |