Skip to content

Merge pull request #12 from czelabueno/fix/release.yaml #9

Merge pull request #12 from czelabueno/fix/release.yaml

Merge pull request #12 from czelabueno/fix/release.yaml #9

Workflow file for this run

name: jAI Workflow Snapshot-release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
snapshot-release:
if: github.repository == 'czelabueno/jai-workflow'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
- name: Publish SNAPSHOT to Sonatype
run: |
mvn -B --fail-at-end \
-DskipTests -DskipITs \
clean deploy
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}