-
-
Notifications
You must be signed in to change notification settings - Fork 53
34 lines (31 loc) · 939 Bytes
/
Main.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
name: Run Gradle on Main
on:
push:
branches:
- master
- main
jobs:
publish:
name: Build and publish - SNAPSHOT
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Publish to MavenCentral
uses: gradle/gradle-build-action@v2
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
with:
arguments: publishAllPublicationsToSonatypeRepository --max-workers 1
- name: Upload allTests results
uses: actions/[email protected]
if: failure()
with:
name: allTests
path: ./**/build/reports/tests/allTests