Skip to content

Commit

Permalink
remove PR and push triggers from release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Mar 11, 2024
1 parent 18f770c commit e7eddc7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Release

on:
push:
branches: [main]
pull_request:
release:
types: [published]
workflow_dispatch:
Expand All @@ -23,7 +20,6 @@ jobs:
name: Build source distribution
needs: tests
runs-on: ubuntu-latest
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.task == 'release')
steps:
- name: Check out repo
uses: actions/checkout@v4
Expand All @@ -45,7 +41,6 @@ jobs:
build_wheels:
name: Build wheels for Python ${{ matrix.python-version }} on ${{ matrix.os }}
needs: tests
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.task == 'release')
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
Expand Down Expand Up @@ -85,4 +80,6 @@ jobs:
with:
skip-existing: true
verbose: true
# set the repository URL to the test PyPI repository if the task is 'test-release'
# else empty string defaults to production PyPI
repository-url: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.task == 'test-release' && 'https://test.pypi.org/legacy/' || '' }}

0 comments on commit e7eddc7

Please sign in to comment.