CI: Fix tag rules
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Benjamin Renard 2022-04-27 20:24:23 +02:00
parent 07ca0729fe
commit 6267e0baf8
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ pipeline:
build: build:
image: debian image: debian
when: when:
tag: * tag: v*
commands: commands:
- DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null - DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null
- DEBIAN_FRONTEND=noninteractive apt-get -y -qq upgrade < /dev/null > /dev/null - DEBIAN_FRONTEND=noninteractive apt-get -y -qq upgrade < /dev/null > /dev/null
@ -23,7 +23,7 @@ pipeline:
publish: publish:
image: plugins/gitea-release image: plugins/gitea-release
when: when:
tag: * tag: v*
settings: settings:
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token

View file

@ -13,7 +13,7 @@ echo "Fetch git tags..."
git fetch --tags git fetch --tags
echo "Detect version using git describe..." echo "Detect version using git describe..."
VERSION="$( git describe --tags )" VERSION="$( git describe --tags|sed 's/^[^0-9]*//' )"
echo "Set version=$VERSION in setup.py using sed..." echo "Set version=$VERSION in setup.py using sed..."
sed -i "s/^version *=.*$/version = '$VERSION'/" setup.py sed -i "s/^version *=.*$/version = '$VERSION'/" setup.py