File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
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}}
You can’t perform that action at this time.
0 commit comments