mirror of
https://github.com/containers/podman-compose.git
synced 2025-05-29 06:37:34 +02:00
scripts: Add script to make new release
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
parent
cbb0cab814
commit
eda4815715
@ -1,6 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
./scripts/uninstall.sh
|
||||
./scripts/clean_up.sh
|
||||
python3 setup.py register
|
||||
python3 setup.py sdist bdist_wheel
|
||||
twine upload dist/*
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: make_release.sh VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION=$1
|
||||
|
||||
sed "s/__version__ = .*/__version__ = \"$VERSION\"/g" -i podman_compose.py
|
||||
git add podman_compose.py
|
||||
git commit -m "Release $VERSION"
|
||||
|
||||
git tag "v$VERSION" -m "v$VERSION" -s
|
||||
|
||||
git push ssh://github.com/containers/podman-compose main "v$VERSION"
|
||||
|
6
scripts/make_release_upload.sh
Executable file
6
scripts/make_release_upload.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
./scripts/uninstall.sh
|
||||
./scripts/clean_up.sh
|
||||
python3 setup.py register
|
||||
python3 setup.py sdist bdist_wheel
|
||||
twine upload dist/*
|
Loading…
x
Reference in New Issue
Block a user