From e07fcb12f835e8d0874f3a6d4186060517853dff Mon Sep 17 00:00:00 2001 From: James Verbus Date: Tue, 3 Sep 2024 15:40:27 -0700 Subject: [PATCH] Updated ci.yml to build both Scala and Python, but only publish Scala. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d26514a..6e93814 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,14 +57,14 @@ jobs: env: SCALA_VERSION: ${{ matrix.scala-version }} SPARK_VERSION: ${{ matrix.spark-version }} - run: ./gradlew :isolation-forest-onnx:build :isolation-forest-onnx:publishToMavenLocal -PscalaVersion=$SCALA_VERSION -PsparkVersion=$SPARK_VERSION + run: ./gradlew build :isolation-forest:publishToMavenLocal -PscalaVersion=$SCALA_VERSION -PsparkVersion=$SPARK_VERSION - name: Release to Maven Central # Release job, only for pushes to the main development branch if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'linkedin/isolation-forest' && !contains(toJSON(github.event.commits.*.message), '[skip release]') - run: ./gradlew :isolation-forest-onnx:publishToSonatype :isolation-forest-onnx:closeAndReleaseStagingRepository -i -PscalaVersion=$SCALA_VERSION -PsparkVersion=$SPARK_VERSION + run: ./gradlew :isolation-forest:publishToSonatype :isolation-forest:closeAndReleaseStagingRepository -i -PscalaVersion=$SCALA_VERSION -PsparkVersion=$SPARK_VERSION env: SCALA_VERSION: ${{ matrix.scala-version }} SPARK_VERSION: ${{ matrix.spark-version }}