Skip to content

Commit

Permalink
feat: enhanced workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fovty committed May 16, 2024
1 parent 072ff96 commit 4674e8b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Build and Publish Python Package

on:
push:

tags:
- '*'

jobs:
build-publish:
Expand All @@ -22,6 +23,12 @@ jobs:
with:
name: dist
path: dist/*
- name: Check Version Format in Tag
if: startsWith(github.ref, 'refs/tags/v')
uses: nowsprinting/[email protected]
id: check-version
with:
prefix: 'v'
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
env:
Expand Down

0 comments on commit 4674e8b

Please sign in to comment.