Skip to content

Commit c072aa6

Browse files
authored
Create maven.yml
1 parent 22025a3 commit c072aa6

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/maven.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

0 commit comments

Comments
 (0)