aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/release.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-07 12:04:06 +0200
committerChocobozzz <me@florianbigard.com>2018-05-07 13:02:03 +0200
commite82afde946921df75444794729758723b1f24cd7 (patch)
treebb5f4026d52ca4ce049c80f238901d10358e638e /scripts/release.sh
parentf6dcad4faa8c92ac657258249a88faa9a9546eb2 (diff)
downloadPeerTube-e82afde946921df75444794729758723b1f24cd7.tar.gz
PeerTube-e82afde946921df75444794729758723b1f24cd7.tar.zst
PeerTube-e82afde946921df75444794729758723b1f24cd7.zip
Fix release script
Diffstat (limited to 'scripts/release.sh')
-rwxr-xr-xscripts/release.sh24
1 files changed, 11 insertions, 13 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index 87ac89131..8c73a1fd6 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -46,7 +46,7 @@ then
46 exit 0 46 exit 0
47fi 47fi
48 48
49( 49(
50 cd client 50 cd client
51 npm version --no-git-tag-version --no-commit-hooks "$1" 51 npm version --no-git-tag-version --no-commit-hooks "$1"
52) 52)
@@ -62,14 +62,14 @@ rm "./client/dist/stats.json"
62# Creating the archives 62# Creating the archives
63( 63(
64 # local variables 64 # local variables
65 directories_to_archive = ("$directory_name/CREDITS.md" "$directory_name/FAQ.md" \ 65 directories_to_archive=("$directory_name/CREDITS.md" "$directory_name/FAQ.md" \
66 "$directory_name/LICENSE" "$directory_name/README.md" \ 66 "$directory_name/LICENSE" "$directory_name/README.md" \
67 "$directory_name/client/dist/" "$directory_name/client/yarn.lock" \ 67 "$directory_name/client/dist/" "$directory_name/client/yarn.lock" \
68 "$directory_name/client/package.json" "$directory_name/config" \ 68 "$directory_name/client/package.json" "$directory_name/config" \
69 "$directory_name/dist" "$directory_name/package.json" \ 69 "$directory_name/dist" "$directory_name/package.json" \
70 "$directory_name/scripts" "$directory_name/support" \ 70 "$directory_name/scripts" "$directory_name/support" \
71 "$directory_name/tsconfig.json" "$directory_name/yarn.lock") 71 "$directory_name/tsconfig.json" "$directory_name/yarn.lock")
72 maintainer_pubkey = "583A612D890159BE" 72 maintainer_public_key="583A612D890159BE"
73 73
74 # temporary setup 74 # temporary setup
75 cd .. 75 cd ..
@@ -77,9 +77,9 @@ rm "./client/dist/stats.json"
77 77
78 # archive creation + signing 78 # archive creation + signing
79 zip -r "PeerTube/$zip_name" "${directories_to_archive[@]}" 79 zip -r "PeerTube/$zip_name" "${directories_to_archive[@]}"
80 gpg --armor --detach-sign -u $maintainer_pubkey "PeerTube/$zip_name" 80 gpg --armor --detach-sign -u "$maintainer_public_key" "PeerTube/$zip_name"
81 XZ_OPT=-e9 tar cfJ "PeerTube/$tar_name" "${directories_to_archive[@]}" 81 XZ_OPT=-e9 tar cfJ "PeerTube/$tar_name" "${directories_to_archive[@]}"
82 gpg --armor --detach-sign -u $maintainer_pubkey "PeerTube/$tar_name" 82 gpg --armor --detach-sign -u "$maintainer_public_key" "PeerTube/$tar_name"
83 83
84 # temporary setup destruction 84 # temporary setup destruction
85 rm "$directory_name" 85 rm "$directory_name"
@@ -87,8 +87,6 @@ rm "./client/dist/stats.json"
87 87
88# Creating the release on GitHub, with the created archives 88# Creating the release on GitHub, with the created archives
89( 89(
90 cd "PeerTube"
91
92 git push origin --tag 90 git push origin --tag
93 91
94 github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog" 92 github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog"