File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Auto Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build :
10
+ name : Build
11
+ runs-on : ubuntu-20.04
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v2
15
+
16
+ # Setup JDK
17
+ - name : Setup Java JDK
18
+ uses : actions/setup-java@v3
19
+ with :
20
+ java-version : 17
21
+ distribution : ' zulu'
22
+
23
+ - name : Restore Maven cache
24
+ uses : skjolber/maven-cache-github-action@v1
25
+ with :
26
+ step : restore
27
+
28
+ # Build
29
+ - name : Build with Maven
30
+ run : mvn package
31
+
32
+ - name : Save Maven cache
33
+ uses : skjolber/maven-cache-github-action@v1
34
+ with :
35
+ step : save
36
+ - name : Auto release
37
+ uses : " marvinpinto/action-automatic-releases@latest"
38
+ with :
39
+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
40
+ automatic_release_tag : latest
41
+ prerelease : false
42
+ files : |
43
+ target/*.jar
You can’t perform that action at this time.
0 commit comments