Skip to content

Commit 47b3985

Browse files
committed
release workflow
1 parent fa722ce commit 47b3985

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
9+
publish:
10+
name: publish release
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: checkout
16+
uses: actions/checkout@v4
17+
18+
- name: set up jdk
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: 'temurin'
22+
java-version: 11
23+
server-id: oap-releases
24+
server-username: PUBLISH_USER
25+
server-password: PUBLISH_KEY
26+
27+
- name: publish release
28+
env:
29+
PUBLISH_USER: ${{ secrets.PUBLISH_USER }}
30+
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
31+
SIGN_KEY: ${{ secrets.SIGN_KEY }}
32+
SIGN_KEY_PASS: ${{ secrets.SIGN_PWD }}
33+
run: |
34+
./mvnw deploy

0 commit comments

Comments
 (0)