Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Deploy

Deploy #24

Workflow file for this run

# Deploy snapshots to Sonatype OSS repository
name: Deploy
on:
workflow_run:
workflows:
- Build
branches:
- master
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: maven
- name: Build, verify, deploy
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: mvn -s ./.maven-settings.xml -B -U clean deploy