Skip to content

Commit

Permalink
ci: release JAR
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 committed Feb 29, 2024
1 parent 19ddc2a commit 15063db
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/upload-binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and release JAR files

on:
release:
types:
- published

jobs:
upload-jar:
runs-on: ubuntu-latest
permissions:
contents: write # release changes require contents write

steps:
- name: Check out code
uses: actions/checkout@v4

- uses: actions/setup-java@v3
with:
java-version: "8"
distribution: temurin

- name: Generate JARs
run: mvn clean package -DskipTests

- name: Set project version env variable
run: |
echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- name: Build and upload JAR
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ github.event.release.tag_name }} target/spark-${{ env.PROJECT_VERSION }}.jar
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ For use with Java and Scala projects, the package can be found [here](https://ce
<dependency>
<groupId>io.qdrant</groupId>
<artifactId>spark</artifactId>
<version>2.0</version>
<version>2.0.1</version>
</dependency>
```

Expand All @@ -43,7 +43,7 @@ from pyspark.sql import SparkSession

spark = SparkSession.builder.config(
"spark.jars",
"spark-2.0.jar", # specify the downloaded JAR file
"spark-2.0.1.jar", # specify the downloaded JAR file
)
.master("local[*]")
.appName("qdrant")
Expand Down Expand Up @@ -75,7 +75,7 @@ You can use the `qdrant-spark` connector as a library in Databricks to ingest da

- Go to the `Libraries` section in your cluster dashboard.
- Select `Install New` to open the library installation modal.
- Search for `io.qdrant:spark:2.0` in the Maven packages and click `Install`.
- Search for `io.qdrant:spark:2.0.1` in the Maven packages and click `Install`.

<img width="1064" alt="Screenshot 2024-01-05 at 17 20 01 (1)" src="https://github.com/qdrant/qdrant-spark/assets/46051506/d95773e0-c5c6-4ff2-bf50-8055bb08fd1b">

Expand Down

0 comments on commit 15063db

Please sign in to comment.