Skip to content

chore(deps): update plugin io.github.gradle-nexus.publish-plugin to v… #5

chore(deps): update plugin io.github.gradle-nexus.publish-plugin to v…

chore(deps): update plugin io.github.gradle-nexus.publish-plugin to v… #5

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ main ]
tags:
- '*'
permissions:
checks: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
checks: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6
- name: Build with Gradle
run: ./gradlew build
- name: Deploy with JReleaser
if: startsWith(github.ref, 'refs/tags/')
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
run: ./gradlew publish jreleaserDeploy
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: JUnit Tests
path: "build/test-results/test/*.xml"
reporter: java-junit
fail-on-error: true
create-release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true