Skip to content

Commit

Permalink
do a build before package begins
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuism committed Dec 3, 2024
1 parent 73ab81f commit 0a240ff
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'liberica'
cache: maven

- name: Test with Maven
run: mvn --batch-mode -Dmaven.test.skip=true --no-transfer-progress package

- name: Login to GHCR
uses: docker/login-action@v3
with:
Expand All @@ -68,7 +78,6 @@ jobs:
--force-color --clear-cache \
--builder docker.io/paketobuildpacks/builder-jammy-buildpackless-tiny \
--buildpack gcr.io/paketo-buildpacks/java-native-image \
--path . \
--publish \
--env BP_NATIVE_IMAGE=true

0 comments on commit 0a240ff

Please sign in to comment.