-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Tweak Linux-only deployment logic
- Loading branch information
Showing
3 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/sh | ||
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-build.sh | ||
# NB: Only the Linux CI node should deploy build artifacts. | ||
NO_DEPLOY=$(test "$(uname)" = Linux || echo 1) sh ci-build.sh | ||
sh ci-build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#!/bin/sh | ||
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-setup-github-actions.sh | ||
sh ci-setup-github-actions.sh | ||
|
||
# Let the Linux build handle artifact deployment. | ||
if [ "$(uname)" != Linux ] | ||
then | ||
echo "No deploy -- non-Linux build" | ||
echo "NO_DEPLOY=1" >> $GITHUB_ENV | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters