From e7eddc70f8800a142b7ab3b1aeb48cef326e7633 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Mon, 11 Mar 2024 15:58:55 +0100 Subject: [PATCH] remove PR and push triggers from release.yml --- .github/workflows/release.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8ee449f..e9269322 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,6 @@ name: Release on: - push: - branches: [main] - pull_request: release: types: [published] workflow_dispatch: @@ -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 @@ -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] @@ -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/' || '' }}