From b9a51053bae3bcb43937b70fc9db4d19933022ce Mon Sep 17 00:00:00 2001 From: Tomas Peterka Date: Wed, 7 Feb 2024 15:37:18 +0100 Subject: [PATCH] fix(ci): solve the problem that tag made by workflow cannot trigger --- .github/workflows/release-python.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-python.yaml b/.github/workflows/release-python.yaml index c39902c..7d1f61a 100644 --- a/.github/workflows/release-python.yaml +++ b/.github/workflows/release-python.yaml @@ -2,17 +2,22 @@ name: "[auto] release-python" on: push: - tags: + branches: - v* + create: + env: PYTHON_VERSION: "3.10" jobs: - build: + release: name: Release new version to PyPI runs-on: ubuntu-latest steps: + - name: Show the env + run: env + - name: Check version format vMAJOR.MINOR.PATCH(-SUFFIX) run: | if [[ ! "$GITHUB_REF_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)*)?$ ]]; then