Skip to content

Commit

Permalink
tried adding if statements to skip build and publish if not tagged re…
Browse files Browse the repository at this point in the history
…lease
  • Loading branch information
puckdoug committed May 10, 2024
1 parent bb2ff74 commit d430e41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:

jobs:
build:
if: startsWith(github.ref, 'refs/tags/release')
runs-on: ubuntu-latest
environment: release
steps:
Expand All @@ -34,6 +35,7 @@ jobs:
overwrite: true

publish:
if: startsWith(github.ref, 'refs/tags/release')
name: Publish to PyPI
environment: release
permissions:
Expand Down

0 comments on commit d430e41

Please sign in to comment.