Skip to content

Commit 0c40b6f

Browse files
committed
Switch from Travis CI to GitHub Actions
1 parent 8d27ba0 commit 0c40b6f

File tree

7 files changed

+27
-23
lines changed

7 files changed

+27
-23
lines changed

.travis/build.sh renamed to .github/build.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,12 @@
77
git clone --depth=1 --branch=gh-pages git@github.com:scijava/status.scijava.org site &&
88
mv -f index-new.html site/index.html &&
99
cd site &&
10-
if [ "$TRAVIS_BUILD_NUMBER" ]
11-
then
12-
commitNote="Travis build $TRAVIS_BUILD_NUMBER"
13-
else
14-
commitNote=$(date)
15-
fi &&
1610
if git diff --quiet index.html
1711
then
1812
echo "== No new changes =="
1913
else
2014
echo "== Pushing changes =="
15+
commitNote="$(TZ=UCT date +'%Y-%M-%d %H:%m:%S UCT')"
2116
git commit -m "Update component table ($commitNote)" index.html &&
2217
git push
2318
fi

.github/setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
mkdir -p "$HOME/.ssh"
3+
echo "$SSH_PRIVATE_KEY" > "$HOME/.ssh/id_ed25519"
4+
chmod -R -w,o-rwx,g-rwx "$HOME/.ssh"

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up CI environment
16+
run: .github/setup.sh
17+
- name: Execute the build
18+
run: .github/build.sh
19+
env:
20+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.travis/deploykey.enc

-3.17 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![](https://travis-ci.org/scijava/status.scijava.org.svg?branch=master)](https://travis-ci.org/scijava/status.scijava.org)
1+
[![](https://github.com/scijava/status.scijava.org/workflows/build/badge.svg)](https://github.com/scijava/status.scijava.org/actions/workflows/build.yml)
22

33
This repository contains code to update the
44
[SciJava component status table](https://status.scijava.org/).

footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</tr>
9797
<tr>
9898
<td><a href="https://github.com/scijava/status.scijava.org">scijava/status.scijava.org</a></td>
99-
<td class="badge"><a href="https://travis-ci.org/scijava/status.scijava.org"><img src="https://travis-ci.org/scijava/status.scijava.org.svg?branch=master"></a></td>
99+
<td class="badge"><a href="https://github.com/scijava/status.scijava.org/actions/workflows/build.yml"><img src="https://github.com/scijava/status.scijava.org/workflows/build/badge.svg"></a></td>
100100
<td class="badge">-</td>
101101
</tr>
102102
<tr>

0 commit comments

Comments
 (0)