Skip to content

Allow manual publish workflow trigger #1

Allow manual publish workflow trigger

Allow manual publish workflow trigger #1

Workflow file for this run

name: Build and Publish
# Only run publish for master
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
- name: Verify Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Build with Gradle
run: ./gradlew build
- name: Publish to Maven
run: ./gradlew publish
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}