Skip to content

Commit

Permalink
Final finetuning of github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DevLeoko committed Mar 9, 2020
1 parent 8c10e6f commit 03ea34f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/main.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Main Workflow
name: Release Workflow

on:
push:
branches: [ master ]
release:
types: [created]

jobs:
build:
Expand All @@ -11,12 +11,13 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
server-id: github
settings-path: ${{ github.workspace }}

- name: Build with Maven
run: |
Expand All @@ -27,7 +28,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: AdvancedBan Jar
name: AdvancedBan
path: artifact

- name: Generate javadocs
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@ name: Unit tests

on:
pull_request:
branches: [ master ]
branches: [ master, development ]
push:
branches: [ master, development ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Test with Maven
run: mvn -B test --file pom.xml

0 comments on commit 03ea34f

Please sign in to comment.