-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (61 loc) · 3.23 KB
/
release.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
checks: write
actions: read
issues: read
packages: write
pull-requests: read
repository-projects: read
statuses: read
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: liberica
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Install GitHub CLI
run: |
sudo apt update && sudo apt install gh -y
- name: Publish package, target Chroma vector store and leverage OpenAI API for model interaction
run: |
./gradlew clean setVersion -PnewVersion=${{ github.event.release.tag_name }} build -Pvector-db-provider=chroma -PjarBaseName=robert-openai-chroma
ARTIFACT_PATH=$(./gradlew -q printArtifactPath -PjarBaseName=robert-openai-chroma)
echo "Uploading $(basename $ARTIFACT_PATH) to release ${{ github.event.release.tag_name }}"
gh release upload "${{ github.event.release.tag_name }}" "$ARTIFACT_PATH" --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package, target Chroma vector store and leverage Ollama for model interaction
run: |
./gradlew clean setVersion -PnewVersion=${{ github.event.release.tag_name }} build -Pvector-db-provider=chroma -Pmodel-api-provider=ollama -PjarBaseName=robert-ollama-chroma
ARTIFACT_PATH=$(./gradlew -q printArtifactPath -PjarBaseName=robert-ollama-chroma)
echo "Uploading $(basename $ARTIFACT_PATH) to release ${{ github.event.release.tag_name }}"
gh release upload "${{ github.event.release.tag_name }}" "$ARTIFACT_PATH" --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package, target PgVector vector store and leverage OpenAI API for model interaction
run: |
./gradlew clean setVersion -PnewVersion=${{ github.event.release.tag_name }} build -Pvector-db-provider=pgvector -PjarBaseName=robert-openai-pgvector
ARTIFACT_PATH=$(./gradlew -q printArtifactPath -PjarBaseName=robert-openai-pgvector)
echo "Uploading $(basename $ARTIFACT_PATH) to release ${{ github.event.release.tag_name }}"
gh release upload "${{ github.event.release.tag_name }}" "$ARTIFACT_PATH" --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package, target PgVector vector store and leverage Ollama for model interaction
run: |
./gradlew clean setVersion -PnewVersion=${{ github.event.release.tag_name }} build -Pvector-db-provider=pgvector -Pmodel-api-provider=ollama -PjarBaseName=robert-ollama-pgvector
ARTIFACT_PATH=$(./gradlew -q printArtifactPath -PjarBaseName=robert-ollama-pgvector)
echo "Uploading $(basename $ARTIFACT_PATH) to release ${{ github.event.release.tag_name }}"
gh release upload "${{ github.event.release.tag_name }}" "$ARTIFACT_PATH" --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}