Skip to content

Update maven.yml

Update maven.yml #16

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: ossrh
server-username: PjaIuxmy
server-password: XW48ruQRFnwU2A6BQ6+80rDgs71ptUKFtM2qwpmPmFvN
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Build and Deploy
run: mvn clean deploy -X --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}