Compare commits
No commits in common. "main" and "7.0.3" have entirely different histories.
2 changed files with 4 additions and 13 deletions
|
@ -1 +1 @@
|
||||||
9.0.1
|
7.0.3
|
|
@ -24,13 +24,6 @@ then
|
||||||
apt install -y ${#MISSING_PACKAGES[@]}
|
apt install -y ${#MISSING_PACKAGES[@]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $ROOT_DIR
|
|
||||||
echo "Update git repo:"
|
|
||||||
git pull
|
|
||||||
echo "done."
|
|
||||||
|
|
||||||
echo "Latest published release: $( /usr/bin/git tag | tail -n 1 )"
|
|
||||||
|
|
||||||
LATEST="$1"
|
LATEST="$1"
|
||||||
|
|
||||||
if [ -z "$LATEST" ]
|
if [ -z "$LATEST" ]
|
||||||
|
@ -40,13 +33,14 @@ then
|
||||||
echo done.
|
echo done.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Latest upstream release: $LATEST"
|
echo "Latest release: $LATEST"
|
||||||
[ -n "$( /usr/bin/git tag -l "$LATEST" )" ] && echo "Release $LATEST already exists" && exit 1
|
[ -n "$( /usr/bin/git tag -l "$LATEST" )" ] && echo "Release $LATEST already exists" && exit 1
|
||||||
|
|
||||||
echo "Press [enter] to create and publish this new release $LATEST"
|
echo "Press [enter] to create and publish this new release"
|
||||||
read
|
read
|
||||||
|
|
||||||
echo "Create new release..."
|
echo "Create new release..."
|
||||||
|
cd $ROOT_DIR
|
||||||
echo -n "$LATEST" > last_release.txt
|
echo -n "$LATEST" > last_release.txt
|
||||||
/usr/bin/git add last_release.txt
|
/usr/bin/git add last_release.txt
|
||||||
/usr/bin/git commit -m "Release $LATEST"
|
/usr/bin/git commit -m "Release $LATEST"
|
||||||
|
@ -57,6 +51,3 @@ echo "Publish new release..."
|
||||||
/usr/bin/git push
|
/usr/bin/git push
|
||||||
/usr/bin/git push --tags
|
/usr/bin/git push --tags
|
||||||
echo done.
|
echo done.
|
||||||
|
|
||||||
echo "Not release $LATEST published. Follow build process there:"
|
|
||||||
echo "https://gitea.zionetrix.net/bn8/forgejo_debian_packager/actions"
|
|
||||||
|
|
Loading…
Reference in a new issue