File tree 3 files changed +30
-19
lines changed
3 files changed +30
-19
lines changed Original file line number Diff line number Diff line change
1
+ name : Java CI with Gradle
2
+ on :
3
+ push :
4
+ branches : [ master ]
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ java : ['8']
11
+ env :
12
+ JDK_VERSION : ${{ matrix.java }}
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - uses : actions/cache@v2
16
+ with :
17
+ path : ~/.gradle/caches
18
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
19
+ restore-keys : |
20
+ ${{ runner.os }}-gradle-
21
+ - name : Run script
22
+ run : ./githubactions-build.sh
23
+ env :
24
+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
25
+ GIT_NAME : ${{ secrets.GIT_NAME }}
26
+ GIT_EMAIL : ${{ secrets.GIT_EMAIL }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
4
4
export EXIT_STATUS=0
5
5
6
- curl -O https://raw.githubusercontent.com/grails/grails-guides/master/travis /build-guide
6
+ curl -O https://raw.githubusercontent.com/grails/grails-guides/master/githubactions /build-guide
7
7
chmod 777 build-guide
8
8
9
9
./build-guide || EXIT_STATUS=$?
10
10
11
11
if [[ $EXIT_STATUS -ne 0 ]]; then
12
- echo " Build failed"
12
+ echo " build-guide failed"
13
13
exit $EXIT_STATUS
14
- fi
14
+ fi
15
15
16
- curl -O https://raw.githubusercontent.com/grails/grails-guides/master/travis /republish-guides-website.sh
16
+ curl -O https://raw.githubusercontent.com/grails/grails-guides/master/githubactions /republish-guides-website.sh
17
17
chmod 777 republish-guides-website.sh
18
18
19
19
./republish-guides-website.sh || EXIT_STATUS=$?
You can’t perform that action at this time.
0 commit comments