forked from raskasa/metrics-okhttp
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 895 Bytes
/
java.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
name: Java CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Build-Project:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Configure JDK
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
with:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
- name: Run Maven Build
run: ./mvnw -B -V -ntp package
- name: Publish Snapshots and JavaDocs
if: github.event_name != 'pull_request'
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
run: ./mvnw -B -V -ntp clean source:jar javadoc:jar deploy --settings=".buildscript/settings.xml" -Dmaven.test.skip=true