Skip to content

Commit 6cb27b5

Browse files
committed
ci: publish to maven
1 parent d6a563e commit 6cb27b5

File tree

5 files changed

+30
-4
lines changed

5 files changed

+30
-4
lines changed

.github/workflows/maven-publish.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
release:
4+
types: [ created ]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Maven Central Repository
11+
uses: actions/setup-java@v3
12+
with:
13+
java-version: '21'
14+
distribution: 'temurin'
15+
server-id: ossrh
16+
server-username: MAVEN_USERNAME
17+
server-password: MAVEN_PASSWORD
18+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
19+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
20+
- name: Publish package
21+
run: mvn -B -ntp deploy
22+
env:
23+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
24+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
25+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
26+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

container-image-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<parent>
77
<groupId>com.javaaidev.llmcodeexecutor</groupId>
8-
<artifactId>parent</artifactId>
8+
<artifactId>llm-code-executor</artifactId>
99
<version>0.1.0</version>
1010
</parent>
1111

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<parent>
77
<groupId>com.javaaidev.llmcodeexecutor</groupId>
8-
<artifactId>parent</artifactId>
8+
<artifactId>llm-code-executor</artifactId>
99
<version>0.1.0</version>
1010
</parent>
1111

executors/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<parent>
77
<groupId>com.javaaidev.llmcodeexecutor</groupId>
8-
<artifactId>parent</artifactId>
8+
<artifactId>llm-code-executor</artifactId>
99
<version>0.1.0</version>
1010
</parent>
1111

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>com.javaaidev.llmcodeexecutor</groupId>
8-
<artifactId>parent</artifactId>
8+
<artifactId>llm-code-executor</artifactId>
99
<name>LLM Code Executor</name>
1010
<description>Execute code for LLM</description>
1111
<version>0.1.0</version>

0 commit comments

Comments
 (0)