Skip to content

Commit

Permalink
fix(ci): solve the problem that tag made by workflow cannot trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Peterka committed Feb 7, 2024
1 parent 1361967 commit b9a5105
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9a5105

Please sign in to comment.