Skip to content

Commit

Permalink
fixing snapshot build
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain4j committed Apr 8, 2024
1 parent f33fb7c commit 1f8bf0f
Showing 1 changed file with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,41 +1,48 @@
name: Java CI
name: snapshot_deploy

on:
workflow_dispatch:

jobs:
java_build:
strategy:
matrix:
java_version: [ 8 ]

snapshot_deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java_version }}
with:
lfs: true

- name: Set up JDK 8
uses: actions/setup-java@v4
with:
lfs: 'true'
java-version: ${{ matrix.java_version }}
java-version: '8'
distribution: 'temurin'
cache: 'maven'
cache: maven
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
- name: Build with JDK ${{ matrix.java_version }}

- name: snapshot_deploy
run: mvn -U -B deploy
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

compliance:

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'
cache: maven

- name: License Compliance
run: mvn -U -P compliance org.honton.chas:license-maven-plugin:compliance

0 comments on commit 1f8bf0f

Please sign in to comment.