Skip to content

Commit 4dd8ac3

Browse files
committed
Add publish workflow
1 parent 3556913 commit 4dd8ac3

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
publish:
7+
runs-on: macos-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Set up JDK 17
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 17
16+
17+
- name: Publish Library
18+
env:
19+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
20+
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
21+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
22+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }}
23+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
24+
run: ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache

0 commit comments

Comments
 (0)