mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Reworked relase script.
This commit is contained in:
parent
5f6c054168
commit
70adb4a1f6
2 changed files with 19 additions and 4 deletions
16
src/bin/push-after-release.sh
Normal file
16
src/bin/push-after-release.sh
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Specify the path to your package.json file
|
||||||
|
PACKAGE_JSON_PATH="./src//package.json"
|
||||||
|
|
||||||
|
# Check if the file exists
|
||||||
|
if [ ! -f "$PACKAGE_JSON_PATH" ]; then
|
||||||
|
echo "Error: package.json not found in the specified path."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Read the version from package.json into a variable
|
||||||
|
VERSION=$(jq -r '.version' "$PACKAGE_JSON_PATH")
|
||||||
|
git push origin master develop $VERSION
|
||||||
|
git push --tags
|
||||||
|
(cd ../ether.github.com && git push)
|
|
@ -207,11 +207,10 @@ console.log(' git log --graph --date-order --boundary --oneline --decorate deve
|
||||||
console.log(` git show '${newVersion}'`);
|
console.log(` git show '${newVersion}'`);
|
||||||
console.log(' (cd ../ether.github.com && git show)');
|
console.log(' (cd ../ether.github.com && git show)');
|
||||||
console.log('If everything looks good then push:');
|
console.log('If everything looks good then push:');
|
||||||
console.log(` git push origin master develop '${newVersion}'`);
|
console.log('Run ./bin/push-after-release.sh');
|
||||||
console.log(' (cd ../ether.github.com && git push)');
|
|
||||||
console.log('Creating a Windows build is not necessary anymore and will be created by GitHub action');
|
console.log('Creating a Windows build is not necessary anymore and will be created by GitHub action');
|
||||||
console.log('Visit https://github.com/ether/etherpad-lite/releases/new and create a new release ' +
|
console.log('After the windows binary is created a new release with the set version is created automatically.' +
|
||||||
`with 'master' as the target and the version is ${newVersion}. `);
|
' Just paste the release notes in there');
|
||||||
console.log('The docs are updated automatically with the new version. While the windows build' +
|
console.log('The docs are updated automatically with the new version. While the windows build' +
|
||||||
' is generated people can still download the older versions.');
|
' is generated people can still download the older versions.');
|
||||||
console.log('Finally go public with an announcement via our comms channels :)');
|
console.log('Finally go public with an announcement via our comms channels :)');
|
||||||
|
|
Loading…
Reference in a new issue