Skip to content

Commit 03ea34f

Browse files
committed
Final finetuning of github workflows
1 parent 8c10e6f commit 03ea34f

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/main.yml renamed to .github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Main Workflow
1+
name: Release Workflow
22

33
on:
4-
push:
5-
branches: [ master ]
4+
release:
5+
types: [created]
66

77
jobs:
88
build:
@@ -11,12 +11,13 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14+
1415
- name: Set up JDK 1.8
1516
uses: actions/setup-java@v1
1617
with:
1718
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 }}
2021

2122
- name: Build with Maven
2223
run: |
@@ -27,7 +28,7 @@ jobs:
2728
- name: Upload artifacts
2829
uses: actions/upload-artifact@v1
2930
with:
30-
name: AdvancedBan Jar
31+
name: AdvancedBan
3132
path: artifact
3233

3334
- name: Generate javadocs

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@ name: Unit tests
22

33
on:
44
pull_request:
5-
branches: [ master ]
5+
branches: [ master, development ]
6+
push:
7+
branches: [ master, development ]
68

79
jobs:
810
test:
911
runs-on: ubuntu-latest
1012

1113
steps:
1214
- uses: actions/checkout@v1
15+
1316
- name: Set up JDK 1.8
1417
uses: actions/setup-java@v1
1518
with:
1619
java-version: 1.8
20+
1721
- name: Test with Maven
1822
run: mvn -B test --file pom.xml

0 commit comments

Comments
 (0)