Skip to content

Commit

Permalink
ci: only build on bump commits
Browse files Browse the repository at this point in the history
  • Loading branch information
skhrg authored Jan 19, 2024
1 parent 4c86759 commit 1e7a889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- main

jobs:
build:
build:
if: "startsWith(github.event.head_commit.message, 'bump:')"
name: Build distribution
runs-on: ubuntu-latest

Expand All @@ -32,7 +33,6 @@ jobs:

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

0 comments on commit 1e7a889

Please sign in to comment.