File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
- name : Main Workflow
1
+ name : Release Workflow
2
2
3
3
on :
4
- push :
5
- branches : [ master ]
4
+ release :
5
+ types : [created ]
6
6
7
7
jobs :
8
8
build :
@@ -11,12 +11,13 @@ jobs:
11
11
12
12
steps :
13
13
- uses : actions/checkout@v2
14
+
14
15
- name : Set up JDK 1.8
15
16
uses : actions/setup-java@v1
16
17
with :
17
18
java-version : 1.8
18
- server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
19
- settings-path : ${{ github.workspace }} # location for the settings.xml file
19
+ server-id : github
20
+ settings-path : ${{ github.workspace }}
20
21
21
22
- name : Build with Maven
22
23
run : |
27
28
- name : Upload artifacts
28
29
uses : actions/upload-artifact@v1
29
30
with :
30
- name : AdvancedBan Jar
31
+ name : AdvancedBan
31
32
path : artifact
32
33
33
34
- name : Generate javadocs
Original file line number Diff line number Diff line change @@ -2,17 +2,21 @@ name: Unit tests
2
2
3
3
on :
4
4
pull_request :
5
- branches : [ master ]
5
+ branches : [ master, development ]
6
+ push :
7
+ branches : [ master, development ]
6
8
7
9
jobs :
8
10
test :
9
11
runs-on : ubuntu-latest
10
12
11
13
steps :
12
14
- uses : actions/checkout@v1
15
+
13
16
- name : Set up JDK 1.8
14
17
uses : actions/setup-java@v1
15
18
with :
16
19
java-version : 1.8
20
+
17
21
- name : Test with Maven
18
22
run : mvn -B test --file pom.xml
You can’t perform that action at this time.
0 commit comments