Skip to content

Commit af2c0e1

Browse files
authored
Run publish
1 parent 5561327 commit af2c0e1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,18 @@ jobs:
9696
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9797

9898
publish_pure:
99+
# Build when pushing to any branch except main
100+
# publish.yml will only publish if tagged ^v.*
99101
if: |
102+
(
100103
github.event_name != 'pull_request' && (
101104
github.ref_name != 'main' ||
102-
github.event_name == 'workflow_dispatch' )
105+
github.event_name == 'workflow_dispatch'
106+
)
107+
) || (
108+
github.event_name == 'pull_request' &&
109+
contains(github.event.pull_request.labels.*.name, 'Run publish')
110+
)
103111
needs: [test, docs]
104112
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
105113
with:

0 commit comments

Comments
 (0)