Skip to content

Commit 9327216

Browse files
committed
chore(ci): Fix triggers
1 parent d81518e commit 9327216

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/build-test-publish.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- master
7+
- main
8+
- maint/*
9+
tags:
10+
- '*'
511
pull_request:
12+
branches:
13+
- master
14+
- main
15+
- maint/*
616
schedule:
7-
- cron: 0 0 * * 0
17+
# 9am EST / 10am EDT Mondays
18+
- cron: 0 14 * * 0
819
# Allow job to be triggered manually from GitHub interface
920
workflow_dispatch:
1021

@@ -224,7 +235,7 @@ jobs:
224235
publish:
225236
name: Publish released package to pypi.org
226237
environment: release-pypi
227-
if: github.event.action == 'published'
238+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
228239
runs-on: ubuntu-latest
229240
needs: [build-package, test]
230241
permissions:

0 commit comments

Comments
 (0)