mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine the signaling dynamic images.
This commit is contained in:
parent
2633f03954
commit
ec5bdc7dfa
6 changed files with 32 additions and 72 deletions
27
trunk/3rdparty/signaling/auto/pub.sh
vendored
Executable file
27
trunk/3rdparty/signaling/auto/pub.sh
vendored
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
REALPATH=$(realpath $0)
|
||||
WORK_DIR=$(cd $(dirname $REALPATH)/.. && pwd)
|
||||
echo "Run pub at $WORK_DIR from $0"
|
||||
cd $WORK_DIR
|
||||
|
||||
git st |grep -q 'nothing to commit'
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Failed: Please commit before release";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
RELEASE=$(git describe --tags --abbrev=0 --exclude release-*)
|
||||
REVISION=$(echo $RELEASE|awk -F . '{print $3}')
|
||||
let NEXT=$REVISION+1
|
||||
echo "Last release is $RELEASE, revision is $REVISION, next is $NEXT"
|
||||
|
||||
TAG="v1.0.$NEXT"
|
||||
echo "publish $TAG"
|
||||
|
||||
git push
|
||||
git tag -d $TAG 2>/dev/null && git push origin :$TAG
|
||||
git tag $TAG
|
||||
git push origin $TAG
|
||||
echo "publish $TAG ok"
|
||||
echo " https://github.com/ossrs/signaling/actions"
|
Loading…
Add table
Add a link
Reference in a new issue