-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (39 loc) · 1020 Bytes
/
build.yaml
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
42
43
44
45
46
47
48
49
name: build
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
workflow_dispatch:
env:
OSS_USER: '${{ secrets.OSS_USER }}'
OSS_TOKEN: '${{ secrets.OSS_TOKEN }}'
OSS_STAGING_PROFILE_ID: '${{ secrets.OSS_STAGING_PROFILE_ID }}'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 11
- name: Build and test with Gradle
uses: gradle/[email protected]
with:
arguments: build
# - name: Publish snapshot
# if: ${{ (github.event_name == 'push') || (github.event_name == 'workflow_dispatch') }}
# run: ./gradlew publishToSonatype "-Psemver.stage=snapshot"
- name: Stop Gradle daemons
run: ./gradlew --stop