diff --git a/.github/workflows/docker-dev.yaml b/.github/workflows/docker-dev.yaml index f5c485c33..4a59b89a3 100644 --- a/.github/workflows/docker-dev.yaml +++ b/.github/workflows/docker-dev.yaml @@ -3,8 +3,6 @@ on: push: branches: - master - release: - types: [created] pull_request: branches: - master diff --git a/.github/workflows/docker-grpc.yaml b/.github/workflows/docker-grpc.yaml index 529525507..7aec0ef70 100644 --- a/.github/workflows/docker-grpc.yaml +++ b/.github/workflows/docker-grpc.yaml @@ -3,8 +3,8 @@ on: push: branches: - master - release: - types: [created] + release: + types: [published] pull_request: branches: - master diff --git a/.github/workflows/docker-jsonrpc.yaml b/.github/workflows/docker-jsonrpc.yaml index c4576be31..0e262aabe 100644 --- a/.github/workflows/docker-jsonrpc.yaml +++ b/.github/workflows/docker-jsonrpc.yaml @@ -3,8 +3,8 @@ on: push: branches: - master - release: - types: [created] + release: + types: [published] pull_request: branches: - master diff --git a/scripts/release.sh b/scripts/release.sh deleted file mode 100755 index 5a8a69a6c..000000000 --- a/scripts/release.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -RE='[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z-]*\)' - -step="$1" -if [ -z "$1" ] -then - step=patch -fi - -base="$2" -if [ -z "$2" ] -then - base=$(git tag 2>/dev/null| tail -n 1) - if [ -z "$base" ] - then - base=0.0.0 - fi -fi - -MAJOR=`echo $base | sed -e "s#$RE#\1#"` -MINOR=`echo $base | sed -e "s#$RE#\2#"` -PATCH=`echo $base | sed -e "s#$RE#\3#"` - -case "$step" in - major) - let MAJOR+=1 - let MINOR=0 - let PATCH=0 - ;; - minor) - let MINOR+=1 - let PATCH=0 - ;; - patch) - let PATCH+=1 - ;; -esac - -next="v$MAJOR.$MINOR.$PATCH" -echo "$base -> $next" - -git commit --allow-empty -a -m "$next" -git tag $next -git push --atomic origin master $next \ No newline at end of file