File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - main
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ strategy :
14
+ matrix :
15
+ java : [ '8' ]
16
+ architecture : [ 'x64' ]
17
+ name : Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }}
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - name : Setup JDK
21
+ uses : actions/setup-java@v4
22
+ with :
23
+ distribution : ' temurin'
24
+ java-version : ${{ matrix.java }}
25
+ architecture : ${{ matrix.architecture }}
26
+ cache : ' gradle'
27
+
28
+ - name : Build with Gradle
29
+ run : ./gradlew asciidoc
30
+ env :
31
+ GITHUB_USER : ' foo'
Original file line number Diff line number Diff line change 54
54
}
55
55
}
56
56
57
+ githubUser = System . getenv(' GITHUB_USER' ) ?: ' defaultUser'
58
+ githubToken = System . getenv(' GITHUB_TOKEN' ) ?: ' defaultToken'
59
+
57
60
asciidoctor {
58
61
sourceDir = file(' src/docs/asciidoc' )
59
62
outputDir = file(" $buildDir /docs/asciidoc" )
You can’t perform that action at this time.
0 commit comments