Skip to content

Commit 6106bcb

Browse files
authored
Create maven.yml
1 parent b8a5827 commit 6106bcb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/maven.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Maven Basic
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up JDK 8
15+
uses: actions/setup-java@v2
16+
with:
17+
java-version: '8'
18+
distribution: 'adopt'
19+
cache: maven
20+
- name: Build with Maven
21+
run: mvn package
22+
- name: Upload
23+
uses: svenstaro/upload-release-action@v2
24+
with:
25+
repo_token: ${{ secrets.GITHUB_TOKEN }}
26+
file: target/tagutil.jar
27+
asset_name: tagutil.jar
28+
tag: v0.1
29+
overwrite: true

0 commit comments

Comments
 (0)