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 87d0031
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-python.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
name: "[auto] release-python"

on:
push:
tags:
- 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 87d0031

Please sign in to comment.