Skip to content

Commit caf69f7

Browse files
committed
Only run "publish" workflow on (pre-) releases
Running it on pushes and / or PR's will make the Poetry 🎭 build fail as that one needs changes in 'pom.xml' that are expected to be done by the SciJava release scripts. Hence this workflow only makes sense when actually cutting a release or pre-release.
1 parent de087cd commit caf69f7

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

β€Ž.github/workflows/build.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
name: 🚚🌍 Publish to πŸ”¬β˜• SciJava and πŸŽͺ PyPI
22

33
on:
4+
5+
release:
6+
types:
7+
- published # A release, pre-release, or draft of a release was published.
8+
49
workflow_dispatch:
510

6-
push:
7-
branches:
8-
- master
9-
tags:
10-
- "python-imcflibs-[0-9]+.*"
11-
pull_request:
12-
branches:
13-
- master
11+
## Do NOT run on pushes or PR's, as they won't have a 'release.properties',
12+
## which is required by the build-tooling (see the comment at the "Inspect" /
13+
## "check-if-release.sh" section below for details).
14+
# push:
15+
# pull_request:
1416

1517

1618
jobs:

0 commit comments

Comments
Β (0)