Skip to content

Commit

Permalink
do not run and skip release on each regular commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichFroebel committed Mar 16, 2024
1 parent c42fbe4 commit dd03a7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Publish Python distribution

on: push
on:
release:
types: [published]

jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes

steps:
- uses: actions/checkout@v4
Expand All @@ -30,7 +31,6 @@ jobs:

publish-to-pypi:
name: Publish Python distribution to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit dd03a7b

Please sign in to comment.