-
Notifications
You must be signed in to change notification settings - Fork 332
49 lines (37 loc) · 1.14 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Maven Workflow
on:
push:
pull_request:
types: [opened, synchronize, reopened]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 14
distribution: 'zulu'
- name: Run Maven Install
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Run Tests
run: mvn test -B
- name: Build Assembly
working-directory: jplag
run: mvn clean generate-sources package assembly:single
- name: Upload Assembly
uses: actions/upload-artifact@v2
with:
name: "JPlag"
path: "jplag/target/jplag-*-jar-with-dependencies.jar"
- name: Publish Release
uses: marvinpinto/action-automatic-releases@latest
if: startsWith(github.ref, 'refs/tags/v')
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
files: |
jplag/target/jplag-*-jar-with-dependencies.jar