Skip to content

Ensure that version functions are passed along #465

Ensure that version functions are passed along

Ensure that version functions are passed along #465

name: Publish
on:
workflow_dispatch:
push:
branches:
- main
- dev*
- feature/*
- fix/*
jobs:
publish-central:
environment: build
runs-on: ubuntu-latest
name: Publish to Maven Central
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Build with Gradle
run: ./gradlew --build-cache build
- name: Publish to Maven Central
run: ./gradlew publish -PforceSign=true
env:
ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.SONATYPE_USERNAME }}"
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"
ORG_GRADLE_PROJECT_rainbowdashlabsSigningKey: "${{ secrets.RAINBOWDASHLABS_SIGN_KEY }}"
ORG_GRADLE_PROJECT_rainbowdashlabsSigningPassword: "${{ secrets.RAINBOWDASHLABS_GPG_PASSWORD }}"