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: