Skip to content

Commit 468f6c6

Browse files
committed
start version 2 development, upgrade slf4j to version 2.x.x, add ability to extend the Logging framework
1 parent cd2f9be commit 468f6c6

28 files changed

+3058
-395
lines changed

.github/workflows/deploy.yaml

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
name: Deploy
1718

1819
on:
@@ -21,41 +22,45 @@ on:
2122

2223
jobs:
2324
verify:
24-
runs-on: ubuntu-20.04
25-
strategy:
26-
matrix:
27-
java-version: [ 11 ]
25+
runs-on: ubuntu-latest
2826
steps:
2927
- name: Check out Git repository
30-
uses: actions/checkout@v3
31-
- name: Install Java and Maven
32-
uses: actions/setup-java@v3
28+
uses: actions/checkout@v4
29+
30+
- name: Set up Java
31+
uses: actions/setup-java@v4
3332
with:
34-
java-version: ${{ matrix.java-version }}
35-
distribution: 'temurin'
36-
- run: mvn verify -B -e
33+
java-version: 11
34+
distribution: temurin
35+
cache: maven
36+
37+
- name: Run Maven verify
38+
run: mvn verify -B -e
3739

3840
release:
3941
needs: verify
40-
runs-on: ubuntu-20.04
42+
runs-on: ubuntu-latest
4143
steps:
4244
- name: Check out Git repository
43-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4446

45-
- name: Install Java and Maven
46-
uses: actions/setup-java@v3
47+
- name: Set up Java for deployment
48+
uses: actions/setup-java@v4
4749
with:
4850
java-version: 11
49-
distribution: 'temurin'
50-
server-id: ossrh
51-
server-username: SONATYPE_USERNAME
52-
server-password: SONATYPE_PASSWORD
53-
- id: install-secret-key
54-
name: Install gpg secret key
51+
distribution: temurin
52+
cache: maven
53+
server-id: 'central'
54+
server-username: CENTRAL_USER
55+
server-password: CENTRAL_TOKEN
56+
- name: Import GPG key
5557
run: |
56-
cat <(echo -e "${{ secrets.gpg_private_key }}") | gpg --batch --import
57-
- name: publish to snapshot
58-
run: mvn --no-transfer-progress clean deploy -B -e -Dci=true -Dgpg.passphrase=${{ secrets.gpg_passphrase }}
58+
echo "${{ secrets.gpg_private_key }}" | gpg --batch --import
59+
env:
60+
GPG_TTY: $(tty)
61+
- name: Deploy with Maven
62+
run: ./mvnw --no-transfer-progress clean deploy -B -e -Dci=true -Dgpg.passphrase=${{ secrets.gpg_passphrase }}
5963
env:
60-
SONATYPE_USERNAME: ${{ secrets.nexus_username }}
61-
SONATYPE_PASSWORD: ${{ secrets.nexus_password }}
64+
CENTRAL_USER: ${{ secrets.CENTRAL_USER }}
65+
CENTRAL_TOKEN: ${{ secrets.CENTRAL_TOKEN }}
66+

0 commit comments

Comments
 (0)