-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.07 KB
/
sonatype.yaml
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
#
# Tomcat-Slf4j-Logback (https://github.com/tomcat-slf4j-logback/tomcat10-slf4j-logback/)
#
# Copyright (c) 2010-2020 Tomcat-Slf4j-Logback.
#
# All rights reserved. This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available
# at https://www.eclipse.org/legal/epl-v10.html.
#
# Contributors: Tomcat-Slf4j-Logback Team.
#
name: Sonatype
on:
push:
branches:
- main
jobs:
build:
if: github.repository_owner == 'tomcat-slf4j-logback' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: zulu
- name: Deploy to Sonatype
run: ./mvnw deploy -DskipTests -B --settings ./.mvn/settings.xml
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}