Bump com.gradleup.nmcp:nmcp from 0.0.8 to 0.0.9 #59
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# CI build that assembles artifacts and runs tests. | |
# If validation is successful this workflow releases from the main dev branch. | |
# | |
# - skipping CI: add [skip ci] to the commit message | |
# - skipping release: add [skip release] to the commit message | |
# | |
name: CI | |
on: | |
push: | |
branches: ['main'] | |
tags-ignore: [v*] # release tags are autogenerated after a successful CI, no need to run CI against them | |
pull_request: | |
branches: ['**'] | |
env: | |
GRADLE_OPTS: "-Dorg.gradle.daemon=false" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [ '11', '17', '21' ] | |
jdk: [ 'temurin' ] | |
os: [ 'ubuntu-latest' ] | |
runs-on: ${{ matrix.os }} | |
name: Java ${{ matrix.java }} ${{ matrix.jdk }} | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Gradle wrapper validation | |
uses: gradle/actions/wrapper-validation@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: ${{ matrix.jdk }} | |
cache: 'gradle' | |
- name: Gradle build | |
run: ./gradlew build | |
# | |
# Release job, only for pushes to the main development branch | |
# | |
release: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
needs: [build] # build job must pass before we can release | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Gradle wrapper validation | |
uses: gradle/actions/wrapper-validation@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Release to Sonatype | |
# Release job, only for pushes to the main branch | |
if: github.event_name == 'push' | |
&& github.ref == 'refs/heads/main' | |
&& github.repository == 'nettyplus/netty-leak-detector-junit-extension' | |
&& !contains(toJSON(github.event.commits.*.message), '[skip release]') | |
run: ./gradlew clean build publishAllPublicationsToCentralPortal --stacktrace | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
NEXUS_TOKEN_USER: ${{secrets.NEXUS_TOKEN_USER}} | |
NEXUS_TOKEN_PWD: ${{secrets.NEXUS_TOKEN_PWD}} | |
PGP_KEY: ${{secrets.PGP_KEY}} | |
PGP_PWD: ${{secrets.PGP_PWD}} |