# This is a script run to release Cockpit for a stable branch
# This is just being used for downstream RHEL packaging, so no
# Fedora/COPR/website update here.
#
# This script is run in the cockpit/release container
# https://github.com/cockpit-project/cockpituous/tree/master/release
#
# Anything that start with 'job' may run in a way that it SIGSTOP's
# itself when preliminary preparition and then gets a SIGCONT in
# order to complete its work

# Initial variables which help the scripts share
RELEASE_SPEC=tools/cockpit.spec
RELEASE_SRPM=$PWD/_release/srpm
RELEASE_SOURCE=$PWD/_release/source

# Build the source tarball patches and srpm
job release-source
job release-srpm

# Upload release to github, using tarball
job release-github

# Push to COPR builds
job release-copr @cockpit/cockpit-preview
