-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.17 KB
/
build-sanpshot.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
38
39
40
41
name: Build and publish jar to sonatype snapshot repository
on:
push:
branches-ignore:
- master
- version-*
- dependabot*
paths-ignore:
- README.md
jobs:
windows-build-job:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 11 ('zulu')
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Build and test with Gradle
run: ./gradlew.bat clean build test
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: test-report
path: build/reports/tests/test
overwrite: true
build-job:
uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main
with:
build-target: 'Sonatype'
secrets:
sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
nvd-api-key: ${{ secrets.NVD_APIKEY }}