Skip to content

Commit e96c3ef

Browse files
zhu-xiaoweixiaoweii
andauthored
chore: add publish workflow to maven repo (#17)
Co-authored-by: xiaoweii <xiaoweii@amazom.com>
1 parent a8fa373 commit e96c3ef

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish To Maven
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: set up JDK 8
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: '8'
16+
distribution: 'corretto'
17+
cache: gradle
18+
- name: Config properties
19+
run: |
20+
echo "nexusUsername=${{ vars.NEXUS_USERNAME }}" >> key.properties
21+
echo "nexusPassword=${{ secrets.NEXUS_PASSWORD }}" >> key.properties
22+
echo "signing.keyId=${{ vars.SIGNING_KEY_ID }}" >> key.properties
23+
echo "signing.password=${{ secrets.SIGNING_PASSWORD }}" >> key.properties
24+
echo "signing.inMemoryKey=${{ secrets.SIGNING_IN_MEMORY_KEY }}" >> key.properties
25+
- name: Grant execute permission for gradlew
26+
run: chmod +x gradlew
27+
- name: Assemble release
28+
run: ./gradlew assembleRelease
29+
- name: Publish to maven
30+
run: ./gradlew publish -p clickstream

0 commit comments

Comments
 (0)