-
-
Notifications
You must be signed in to change notification settings - Fork 88
39 lines (37 loc) · 1.09 KB
/
build.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
name: Build
on:
push:
branches:
- develop
- release
pull_request:
jobs:
# Since both build and publish run on the same jvm, there's no reason to build twice.
# If/when we want to run on multiple jvms again just uncomment this block, and the
# "needs: build" line in "publish" to bring it back.
# build:
# strategy:
# matrix:
# java: [17-jdk]
# runs-on: ubuntu-22.04
# container:
# image: eclipse-temurin:${{ matrix.java }}
# options: --user root
# steps:
# - uses: actions/checkout@v3
# - uses: gradle/wrapper-validation-action@v1
# - run: ./gradlew build --stacktrace
publish:
# needs: build
runs-on: ubuntu-22.04
container:
image: eclipse-temurin:17
options: --user root
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew build publish --stacktrace
# env:
# SNAPSHOTS_URL: ${{ secrets.SNAPSHOTS_URL }}
# SNAPSHOTS_USERNAME: ${{ secrets.SNAPSHOTS_USERNAME }}
# SNAPSHOTS_PASSWORD: ${{ secrets.SNAPSHOTS_PASSWORD }}