@@ -29,6 +29,10 @@ defaults:
29
29
shell : bash
30
30
31
31
jobs :
32
+
33
+ # Gradle Build Action
34
+ # -------------------
35
+
32
36
build :
33
37
name : 🏗️ Gradle Build
34
38
timeout-minutes : 15
58
62
- name : 🛎️ Check out the source code
59
63
uses : actions/checkout@v2
60
64
with :
61
- fetch-depth : 100
65
+ fetch-depth : 0
62
66
63
67
- name : ⬇️ Download ${{ matrix.os }} OpenJDK ${{ matrix.jdk }}
64
68
id : download-jdk
@@ -118,8 +122,9 @@ jobs:
118
122
${{ steps.gradle-build.outputs.uberjar_path }}
119
123
if-no-files-found : error
120
124
125
+ # Deploy the Dokka site for new tag on Linux
121
126
- name : 🚀 Deploy html docs to website
122
- if : runner.os == 'Linux'
127
+ if : startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux'
123
128
uses : JamesIves/github-pages-deploy-action@releases/v3
124
129
with :
125
130
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -128,6 +133,9 @@ jobs:
128
133
TARGET_FOLDER : docs/apidoc/
129
134
CLEAN : true
130
135
136
+ # Github Release Action on tag push
137
+ # ---------------------------------
138
+
131
139
release :
132
140
name : 🚰 Release new version.
133
141
needs : [ build ]
@@ -166,6 +174,10 @@ jobs:
166
174
env :
167
175
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
168
176
177
+
178
+ # Run Java Application on OpenJDK docker/oci images
179
+ # -------------------------------------------------
180
+
169
181
container-build :
170
182
name : 🚢 Run Java on Container
171
183
runs-on : ubuntu-latest
@@ -180,7 +192,6 @@ jobs:
180
192
shell : sh
181
193
182
194
container :
183
- # openjdk:17-jdk-alpine
184
195
image : ${{ matrix.jdk }}
185
196
186
197
steps :
0 commit comments