From b79a219d0975ca5a322c1a754901b290facacc89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 14 Jan 2023 15:17:09 +0100 Subject: ci: Execute release in a separate step So that if it fails the website publishing does not fail --- .gitlab-ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.gitlab-ci.yml') 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}" -- cgit v1.2.3