Skip to content

Commit ce0a97e

Browse files
committed
Remove duplicated action
1 parent 883a894 commit ce0a97e

File tree

2 files changed

+7
-37
lines changed

2 files changed

+7
-37
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/maven.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow will build a Java project with Maven
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33

44
name: Java CI with Maven
@@ -16,15 +16,17 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Set up JDK 1.8
20-
uses: actions/setup-java@v1
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v2
2121
with:
22-
java-version: 1.8
22+
java-version: '11'
23+
distribution: 'adopt'
24+
cache: maven
2325
server-id: github
2426
server-username: GITHUB_USER_REF
2527
server-password: GITHUB_TOKEN_REF
2628
- name: Build with Maven
2729
env:
2830
GITHUB_USER_REF: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
2931
GITHUB_TOKEN_REF: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}
30-
run: mvn clean install -s settings.xml -B package --file pom.xml -X
32+
run: mvn -s settings.xml -B package --file pom.xml

0 commit comments

Comments
 (0)