Skip to content

Commit

Permalink
Maintenance: CI: Build wheels only if push to upstream (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinolog committed Nov 28, 2023
1 parent e9e33b3 commit d2dc7fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
name: Build wheels on ${{ matrix.os }}
needs: [ Test, Isort, Black, Ruff ]
# build only on push: heavy job
if: github.event_name == 'push'
if: github.event_name == 'push' && github.repository == 'urwid/urwid'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
upload_pypi:
needs: [ build_wheels, build_sdist, Metadata ]
# upload to PyPI on every tag
if: github.event_name == 'push' && github.ref_type == 'tag'
if: github.event_name == 'push' && github.ref_type == 'tag' && github.repository == 'urwid/urwid'
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
Expand Down

0 comments on commit d2dc7fb

Please sign in to comment.