Skip to content

Commit 213ff4c

Browse files
committed
Use Java 11 for Actions, add CODEOWNERS
1 parent cc77ec3 commit 213ff4c

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

.github/workflows/publish-snapshot.yml renamed to .github/workflows/development.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
1-
name: Publish Snapshot
1+
name: Development
2+
23
on:
34
push:
45
branches: [development]
6+
57
jobs:
6-
publish:
8+
deploy:
79
runs-on: ubuntu-latest
810
steps:
911
- uses: actions/checkout@v2
10-
- name: Set up Java
12+
- name: Setup Java 11
1113
uses: actions/setup-java@v2
1214
with:
13-
java-version: '8'
15+
java-version: '11'
1416
distribution: 'adopt'
1517
server-id: hypera-snapshots
1618
server-username: MAVEN_USERNAME
1719
server-password: MAVEN_PASSWORD
18-
- name: Publish package
20+
- name: Cache Maven Dependencies
21+
uses: actions/[email protected]
22+
with:
23+
path: ~/.m2
24+
key: ubuntu-latest-m2-${{ hashFiles('**/pom.xml') }}
25+
restore-keys: ubuntu-latest-m2
26+
- name: Build with Maven
27+
run: mvn -B package --file pom.xml
28+
- name: Deploy Maven package
1929
run: mvn --batch-mode deploy
2030
env:
2131
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}

.github/workflows/publish-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Set up Java
1111
uses: actions/setup-java@v2
1212
with:
13-
java-version: '8'
13+
java-version: '11'
1414
distribution: 'adopt'
1515
server-id: hypera-releases
1616
server-username: MAVEN_USERNAME

0 commit comments

Comments
 (0)