mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 02:53:50 +00:00
10 lines
254 B
Bash
10 lines
254 B
Bash
|
#!/bin/bash
|
||
|
git fetch origin --tags
|
||
|
|
||
|
tag=$(git tag -l --sort=-version:refname | head -n1 | awk -F. '{$2++; $3=0; print $1"."$2"."$3}')
|
||
|
git tag $tag
|
||
|
git push -f origin HEAD
|
||
|
echo "sleep 3 seconds for CI to detect tag pushing"
|
||
|
sleep 3
|
||
|
git push origin $tag
|