From 932721668462f18bb4a5e5a39c6a7152bb5d38ae Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Wed, 18 Dec 2024 16:42:26 -0500 Subject: [PATCH] chore(ci): Fix triggers --- .github/workflows/build-test-publish.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index b77ac0196e..d6fcac118c 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -2,9 +2,20 @@ name: CI on: push: + branches: + - master + - main + - maint/* + tags: + - '*' pull_request: + branches: + - master + - main + - maint/* schedule: - - cron: 0 0 * * 0 + # 9am EST / 10am EDT Mondays + - cron: 0 14 * * 0 # Allow job to be triggered manually from GitHub interface workflow_dispatch: @@ -224,7 +235,7 @@ jobs: publish: name: Publish released package to pypi.org environment: release-pypi - if: github.event.action == 'published' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') runs-on: ubuntu-latest needs: [build-package, test] permissions: