Skip to content

Add PromptRequest.text() convenience method, fix snapshot versions #4

Add PromptRequest.text() convenience method, fix snapshot versions

Add PromptRequest.text() convenience method, fix snapshot versions #4

name: Publish Snapshot
on:
push:
branches: [main]
paths-ignore:
- 'docs/**'
- '*.md'
workflow_dispatch:
inputs:
skip_tests:
description: 'Skip tests for quick publishing'
required: false
default: false
type: boolean
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build and verify
run: |
if [ "${{ inputs.skip_tests }}" = "true" ]; then
./mvnw clean verify -B -DskipTests
else
./mvnw clean verify -B
fi
- name: Publish snapshot to Maven Central
run: ./mvnw deploy -B -DskipTests
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}