diff --git a/.obs/workflows.yml b/.obs/workflows.yml index 92c2ed2b..fd3c13b4 100644 --- a/.obs/workflows.yml +++ b/.obs/workflows.yml @@ -4,3 +4,13 @@ workflow: source_project: network:messaging:zeromq:git-draft source_package: libzmq target_project: network:messaging:zeromq:ci +release: + steps: + - trigger_services: + project: network:messaging:zeromq:release-stable + package: libzmq + - trigger_services: + project: network:messaging:zeromq:release-draft + package: libzmq + filters: + event: tag_push diff --git a/ci_deploy.sh b/ci_deploy.sh index a1982182..fac6d4e7 100644 --- a/ci_deploy.sh +++ b/ci_deploy.sh @@ -15,14 +15,6 @@ if [[ $BUILD_TYPE == "default" && $CURVE == "libsodium" && -z $DRAFT ]]; then md5sum *.zip *.tar.gz > MD5SUMS sha1sum *.zip *.tar.gz > SHA1SUMS cd - - - # Trigger source run on new tag on OBS. The latest tag will be fetched. - if [ -n "${OBS_STABLE_TOKEN}" ]; then - curl -H "Authorization: Token ${OBS_STABLE_TOKEN}" -X POST https://api.opensuse.org/trigger/runservice - fi - if [ -n "${OBS_DRAFT_TOKEN}" ]; then - curl -H "Authorization: Token ${OBS_DRAFT_TOKEN}" -X POST https://api.opensuse.org/trigger/runservice - fi else export LIBZMQ_DEPLOYMENT="" fi