aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-28 14:37:30 +0200
committerChocobozzz <me@florianbigard.com>2022-06-28 14:37:30 +0200
commita2fb5fb8b1007e3ce82e707917f5d9a37374e99b (patch)
tree9073ed691e5662f4129805a663c0d2246a60ce33 /scripts
parent7a9efc5cd2cd3eb02019af21103bd2d317ada26a (diff)
parent28368da08762fafc094dacc911679977c662af13 (diff)
downloadPeerTube-a2fb5fb8b1007e3ce82e707917f5d9a37374e99b.tar.gz
PeerTube-a2fb5fb8b1007e3ce82e707917f5d9a37374e99b.tar.zst
PeerTube-a2fb5fb8b1007e3ce82e707917f5d9a37374e99b.zip
Merge branch 'release/4.2.0' into develop
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index 76970b79b..2b922a749 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -26,6 +26,8 @@ fi
26 26
27maintainer_public_key=${MAINTAINER_GPG:-"583A612D890159BE"} 27maintainer_public_key=${MAINTAINER_GPG:-"583A612D890159BE"}
28 28
29peertube_directory=$(basename $(pwd))
30
29branch=$(git symbolic-ref --short -q HEAD) 31branch=$(git symbolic-ref --short -q HEAD)
30if [ "$branch" != "develop" ] && [[ "$branch" != release/* ]]; then 32if [ "$branch" != "develop" ] && [[ "$branch" != release/* ]]; then
31 echo "Need to be on develop or release branch." 33 echo "Need to be on develop or release branch."
@@ -80,13 +82,13 @@ rm -f "./client/dist/embed-stats.json"
80 82
81 # temporary setup 83 # temporary setup
82 cd .. 84 cd ..
83 ln -s "PeerTube" "$directory_name" 85 ln -s "$peertube_directory" "$directory_name"
84 86
85 # archive creation + signing 87 # archive creation + signing
86 zip -9 -r "PeerTube/$zip_name" "${directories_to_archive[@]}" 88 zip -9 -r "$peertube_directory/$zip_name" "${directories_to_archive[@]}"
87 gpg --armor --detach-sign -u "$maintainer_public_key" "PeerTube/$zip_name" 89 gpg --armor --detach-sign -u "$maintainer_public_key" "$peertube_directory/$zip_name"
88 XZ_OPT="-e9 -T0" tar cfJ "PeerTube/$tar_name" "${directories_to_archive[@]}" 90 XZ_OPT="-e9 -T0" tar cfJ "$peertube_directory/$tar_name" "${directories_to_archive[@]}"
89 gpg --armor --detach-sign -u "$maintainer_public_key" "PeerTube/$tar_name" 91 gpg --armor --detach-sign -u "$maintainer_public_key" "$peertube_directory/$tar_name"
90 92
91 # temporary setup destruction 93 # temporary setup destruction
92 rm "$directory_name" 94 rm "$directory_name"