Skip to content

Update README.md

Update README.md #314

Workflow file for this run

name: Main CI
on:
push:
branches:
- main
paths-ignore:
- .gitignore
- LICENSE
- README.md
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
spotless:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 21
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
distribution: temurin
java-version: 21
- name: Run Spotless
run: ./gradlew spotlessCheck
build:
runs-on: macos-14
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 21
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
distribution: temurin
java-version: 21
- name: Build with Gradle
run: ./gradlew build
- name: Archive build artifacts
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: log4k_build
path: |
.gradle
build
log4k/build
log4k-slf4j/build
publish:
needs: build
runs-on: macos-14
if: github.ref == 'refs/heads/main'
environment: Sonatype
env:
ORG_GRADLE_PROJECT_sonatypePass: ${{ secrets.SONATYPE_API_KEY }}
ORG_GRADLE_PROJECT_sonatypeUser: ${{ secrets.SONATYPE_USER }}
SONATYPE_GPG_KEY: ${{ secrets.SONATYPE_GPG_KEY }}
SONATYPE_GPG_KEY_PASSWORD: ${{ secrets.SONATYPE_GPG_KEY_PASSWORD }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: refs/heads/main
fetch-depth: 0
- name: Set up JDK 21
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
distribution: temurin
java-version: 21
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: log4k_build
- name: Publish to Sonatype (Maven Central)
shell: bash
run: |
brew install gnupg
./scripts/publish