Skip to content

Commit 3946538

Browse files
committed
added publish github action
1 parent 1cc9148 commit 3946538

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
publish:
9+
name: Release build and publish
10+
runs-on: macos-latest
11+
steps:
12+
- name: Check out code
13+
uses: actions/checkout@v2
14+
- name: Set up JDK
15+
uses: actions/setup-java@v2
16+
with:
17+
distribution: 'adopt'
18+
java-version: '11'
19+
- name: Release build
20+
run: ./gradlew build
21+
- name: Publish to MavenCentral
22+
run: ./gradlew publishAllPublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
23+
env:
24+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
25+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
26+
SIGNING_SIGNING_KEY: ${{ secrets.SIGNING_SIGNING_KEY }}
27+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}

0 commit comments

Comments
 (0)