Skip to content

Commit

Permalink
Enable snapshot releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Shastick committed Jan 19, 2024
1 parent f06c113 commit 06b90fc
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/snapshot-releases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Snapshot Releases

on: [push] # for tests we push with every PR update
# Only run on pushes to main:
# on:
# push:
# branches:
# - main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
# We could consider bumping this for snapshots?
java-version: '8'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
# These don't work with java 8.
# Consider have something separate with more recent versions for the modules that don't support older versions?
included_modules: '-pl !code-execution-engines/langchain4j-code-execution-engine-graalvm-polyglot,!langchain4j-neo4j,!langchain4j-opensearch,!langchain4j-chroma'
# Notes:
# - tests already run in a separate action
run: mvn --batch-mode deploy -DskipTests $included_modules

0 comments on commit 06b90fc

Please sign in to comment.