forked from langchain4j/langchain4j
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.12 KB
/
release-snapshot.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: release_snapshot
# Only run on pushes to main:
# Replace with 'on: [push]' if you need to run tests on your PR
on:
push:
branches:
- main
jobs:
release_snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
# Modules specify the oldest java version that they support:
# even if we build with version 21, produced jars should be compatible with
# JVMs running the version specified in each module's maven.compiler.target property
java-version: '21'
distribution: 'temurin'
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
- name: release_snapshot
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# Notes:
# - tests already run in a separate action (main)
run: mvn -B -U --fail-at-end -DskipTests -DskipLocalAiITs -DskipMongoDbAtlasITs -DskipOllamaITs -DskipVearchITs -DskipVertexAiGeminiITs clean deploy