-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (27 loc) · 750 Bytes
/
Copy pathmaven.yml
File metadata and controls
29 lines (27 loc) · 750 Bytes
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
name: Build and Publish
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
- name: Build
run: mvn clean verify -Dmaven.javadoc.skip=true
- name: Publish Package
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: mvn deploy -Dmaven.javadoc.skip=true -s .github/settings.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}