Skip to content

Commit

Permalink
Update pypi.yaml
Browse files Browse the repository at this point in the history
adosar committed Oct 6, 2024
1 parent fb1acbc commit 3a2b9ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Publish Python 🐍 distribution 📦 to PyPI

on: push
branches: [master]
on:
push:
branches: [master]

jobs:
build:
name: Build distribution 📦
if: startsWith(github.ref, 'refs/tags/[0-9]+.[0-9]+.[0-9]+.') # only build on SemVer tags
if: startsWith(github.ref, 'refs/tags/') # only build on tag pushes
runs-on: ubuntu-latest

steps:
@@ -31,7 +32,7 @@ jobs:

publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
if: startsWith(github.ref, 'refs/tags/[0-9]+.[0-9]+.[0-9]+.') # only publish to PyPI on SemVer tags
needs:
- build
runs-on: ubuntu-latest

0 comments on commit 3a2b9ab

Please sign in to comment.