Skip to content

Commit 9dd7bdd

Browse files
authored
use shared gh action/release-drafter (#128)
* use shared gh action/release-drafter * add release drafter configuration * add release-drafter action
1 parent 3ba873c commit 9dd7bdd

File tree

3 files changed

+53
-25
lines changed

3 files changed

+53
-25
lines changed

.github/release-drafter.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
_extends: maven-gh-actions-shared
19+
tag-template: maven-javadoc-plugin-$NEXT_MINOR_VERSION

.github/workflows/maven.yml

+9-25
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,16 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
name: GitHub CI
18+
name: Verify
1919

20-
on: [push, pull_request]
20+
on:
21+
push:
22+
pull_request:
2123

2224
jobs:
2325
build:
24-
25-
strategy:
26-
matrix:
27-
os: [ubuntu-latest, windows-latest, macOS-latest]
28-
java: [8, 11, 17]
29-
jdk: [temurin, zulu]
30-
fail-fast: false
31-
32-
runs-on: ${{ matrix.os }}
33-
34-
steps:
35-
- name: Checkout
36-
uses: actions/checkout@v2
37-
38-
- name: Set up JDK
39-
uses: actions/setup-java@v2
40-
with:
41-
distribution: ${{ matrix.jdk }}
42-
java-version: ${{ matrix.java }}
43-
cache: 'maven'
44-
45-
- name: Build with Maven
46-
run: mvn verify site --errors --batch-mode --show-version -P run-its
26+
name: Verify
27+
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v2
28+
with:
29+
jdk-distribution-matrix: '[ "temurin", "zulu", "microsoft", "liberica", "adopt-openj9" ]'
30+
matrix-exclude: '[{ "jdk": "8", "distribution": "microsoft"}]'

.github/workflows/release-drafter.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: Release Drafter
19+
on:
20+
push:
21+
branches:
22+
- master
23+
jobs:
24+
update_release_draft:
25+
uses: apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml@v2

0 commit comments

Comments
 (0)