mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
27 lines
664 B
Bash
Executable File
27 lines
664 B
Bash
Executable File
#!/bin/sh
|
|
|
|
./run_tests.sh
|
|
|
|
previousVersion=$( grep 'version =' setup.py | sed 's/.*version = \"\(.*\)\".*/\1/' )
|
|
echo "Next version number? (previous: '$previousVersion')"
|
|
read version
|
|
sed -i -b "s/version = .*/version = \"$version\",/" setup.py
|
|
git add setup.py
|
|
|
|
echo "Edit ReadMe.md now, then press enter"
|
|
read foobar
|
|
git add ReadMe.md
|
|
|
|
echo "Breack (Ctrl+c) here if something is wrong. Else, press enter"
|
|
read foobar
|
|
|
|
git commit -m "Publish version $version"
|
|
git tag -m "Version $version" v$version
|
|
|
|
cp -r *.md doc COPYING* github
|
|
python setup.py sdist upload
|
|
rm -rf github/*.md github/doc github/COPYING*
|
|
|
|
git push origin master master:develop
|
|
git push --tags
|