Skip to content

Commit c89c31d

Browse files
committed
Create Workflow to publish snapshots release to Maven Central
1 parent e911828 commit c89c31d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Snapshot builds
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
publish:
10+
name: Snapshot build and publish
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@v2
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v2
17+
with:
18+
distribution: adopt
19+
java-version: 11
20+
- name: Release build
21+
run: ./gradlew assemble --scan
22+
- name: Source jar and dokka
23+
run: ./gradlew androidSourcesJar javadocJar --scan
24+
- name: Publish to MavenCentral
25+
run: ./gradlew publishReleasePublicationToSonatypeRepository --scan
26+
env:
27+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
28+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
29+
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
30+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
31+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
32+
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
33+
SNAPSHOT: true

0 commit comments

Comments
 (0)