Skip to content

Commit 396727f

Browse files
committed
Introduce build-artifacts.
1 parent 58503b8 commit 396727f

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build Artifacts (Java 8)
2+
3+
env:
4+
MAVEN_ARGS: -B -C -V -ntp -Dhttp.keepAlive=false -e -Prelease -DstagingProgressTimeoutMinutes=20
5+
6+
on:
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build-artifacts:
14+
name: Build JARs Java 8
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Setup Java 8
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: 8
23+
distribution: 'temurin'
24+
- name: Build Project (skip tests)
25+
run: ./mvnw ${MAVEN_ARGS} clean package -DskipTests
26+
- name: Collect JARs
27+
run: |
28+
mkdir -p artifacts
29+
find . -path ./artifacts -prune -o -name '*.jar' -not -name '*-sources.jar' -not -name '*-javadoc.jar' -print | xargs -I{} cp {} artifacts/
30+
- name: Upload JARs as artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: kubernetes-client-jars-java8
34+
path: artifacts/*.jar
35+
if-no-files-found: error

0 commit comments

Comments
 (0)