-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.17 KB
/
maven_packages.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
42
43
44
45
46
47
48
49
50
name: Maven Packages
on:
push:
paths:
- java/**
- .github/workflows/maven_packages.yml
# branches:
# - master
pull_request:
paths:
- java/**
# branches:
# - master
workflow_dispatch:
jobs:
build-publish:
strategy:
matrix:
include:
- path: "java/Streaming"
- path: "java/S3Sink"
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }}
- name: Build with Maven
working-directory: ${{ matrix.path }}
run: mvn --batch-mode package -Denforcer.skip=true -Dcheckstyle.skip=true -Dspotless.check.skip=true
- name: Publish to GitHub Packages Apache Maven
working-directory: ${{ matrix.path }}
run: mvn --batch-mode deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}