Skip to content

Commit 80581c1

Browse files
Use uber jar as jar artifact
1 parent 072666f commit 80581c1

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.github/workflows/push_main.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,13 @@ jobs:
3939

4040
- name: Build
4141
id: build_jar
42-
run: |
43-
./mvnw package
44-
echo current_version=$(echo $(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)) >> $GITHUB_OUTPUT
45-
46-
- name: Rename file
47-
run: mv ${{ github.workspace }}/target/quarkus-app/quarkus-run.jar ${{ github.workspace }}/target/quarkus-app/kafkagen-${{ steps.build_jar.outputs.current_version }}.jar
42+
run: ./mvnw package -Dquarkus.package.jar.type=uber-jar
4843

4944
- name: Upload
5045
uses: actions/upload-artifact@v4
5146
with:
5247
name: kafkagen-jar
53-
path: ${{ github.workspace }}/target/quarkus-app/kafkagen-${{ steps.build_jar.outputs.current_version }}.jar
48+
path: ${{ github.workspace }}/target/*-runner.jar
5449

5550
- name: Docker
5651
run: ./mvnw package -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -DskipTests
@@ -102,7 +97,7 @@ jobs:
10297
- name: Upload
10398
uses: actions/upload-artifact@v4
10499
with:
105-
name: kafkactl-${{ matrix.platform }}
100+
name: kafkagen-${{ matrix.platform }}
106101
path: ${{ github.workspace }}/target/**/*-runner
107102

108103
- name: Docker

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Build and test
3838
id: build_jar
3939
run: |
40-
./mvnw package
40+
./mvnw package -Dquarkus.package.jar.type=uber-jar
4141
echo current_version=$(echo $(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)) >> $GITHUB_OUTPUT
4242
4343
- name: Publish test report
@@ -65,15 +65,12 @@ jobs:
6565
env:
6666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6767

68-
- name: Rename file
69-
run: mv ${{ github.workspace }}/target/quarkus-app/quarkus-run.jar ${{ github.workspace }}/target/quarkus-app/kafkagen-${{ steps.build_jar.outputs.current_version }}.jar
70-
7168
- name: Update release
7269
uses: ncipollo/[email protected]
7370
with:
7471
token: ${{ secrets.GITHUB_TOKEN }}
7572
body: ${{ steps.build_changelog.outputs.changelog }}
76-
artifacts: ${{ github.workspace }}/target/quarkus-app/kafkagen-${{ steps.build_jar.outputs.current_version }}.jar
73+
artifacts: ${{ github.workspace }}/target/kafkagen-${{ steps.build_jar.outputs.current_version }}-runner.jar
7774
draft: true
7875
prerelease: true
7976
allowUpdates: true

0 commit comments

Comments
 (0)