Merge pull request #12 from czelabueno/fix/release.yaml #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |