Skip to content

Commit 9c9b3d1

Browse files
committed
Fix the release workflow
* Try harder to skip mega-melt when releasing. * Change release workflow name to "release".
1 parent 474e299 commit 9c9b3d1

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/build.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
#!/bin/sh
2+
3+
# Discern whether this is a release build.
4+
releasing=
5+
if [ -f release.properties ]; then
6+
releasing=1
7+
fi
8+
9+
# Run the SciJava CI build script.
210
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-build.sh &&
311
sh ci-build.sh || { echo "Maven build failed. Skipping melting pot tests."; exit 1; }
412

5-
if [ -f release.properties ]; then
6-
# Skip melting pot when cutting a release.
13+
# Skip melting pot if cutting a release.
14+
if [ "$releasing" ]; then
715
exit 0
816
fi
917

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build
1+
name: release
22

33
on:
44
push:

0 commit comments

Comments
 (0)