Skip to content

Commit 538c5ad

Browse files
authored
Merge pull request #10 from yml-org/feature/publish-maven
Add publish workflow
2 parents 946d3a2 + cdd195f commit 538c5ad

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
publish-maven:
8+
name: Publish to Maven
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up Java for publishing to Maven Central Repository
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: '11'
16+
distribution: 'temurin'
17+
cache: gradle
18+
19+
- name: Grant execute permission for gradlew
20+
run: chmod +x gradlew
21+
- name: Publish to Repository
22+
run: ./gradlew :chat-gpt:clean publishReleasePublicationToYChatGPTRepository
23+
24+
env:
25+
MAVEN_USERNAME: ${{ secrets.MAVENCENTRALUSERNAME }}
26+
MAVEN_PASSWORD: ${{ secrets.MAVENCENTRALPASSWORD}}
27+
MEMORY_KEY: ${{ secrets.SIGNINGINMEMORYKEY}}
28+
SIGNINGKEY: ${{ secrets.SIGNINGKEYID}}
29+
SIGNINGPASSWORD: ${{ secrets.SIGNINGPASSWORD}}

0 commit comments

Comments
 (0)