-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (28 loc) · 947 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: "Release"
on:
push:
branches:
- main
jobs:
publish:
name: "Publish to Sonatype"
runs-on: macos-latest
permissions:
contents: read
steps:
- name: "Checkout sources"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: "Set up Java"
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4
with:
distribution: 'zulu'
java-version-file: '.java-version'
- name: "Setup gradle"
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4
- name: "Build"
run: ./gradlew build
- name: "Publish package"
run: ./gradlew publishToSonatype
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}