Skip to content

Commit 53b273a

Browse files
Update pipeline
1 parent b819156 commit 53b273a

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/maven-publish.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
settings-path: ${{ github.workspace }} # location for the settings.xml file
2929

3030
- name: Build with Maven
31-
run: mvn -B package --file pom.xml
31+
run: mvn -B package assembly:single --file pom.xml
3232

3333
- name: Publish to GitHub Packages Apache Maven
3434
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
@@ -50,7 +50,7 @@ jobs:
5050
draft: false
5151
prerelease: false
5252

53-
- name: upload darwin artifact
53+
- name: Upload normal JAR artifact
5454
uses: actions/upload-release-asset@v1
5555
env:
5656
GITHUB_TOKEN: ${{ github.token }}
@@ -59,3 +59,13 @@ jobs:
5959
asset_path: '${{ github.workspace }}/target/guacamole-docker-manager-${{ steps.project.outputs.version }}.jar'
6060
asset_name: guacamole-docker-manager.jar
6161
asset_content_type: application/jar
62+
63+
- name: Upload JAR with dependency artifact
64+
uses: actions/upload-release-asset@v1
65+
env:
66+
GITHUB_TOKEN: ${{ github.token }}
67+
with:
68+
upload_url: ${{ steps.create_release.outputs.upload_url }}
69+
asset_path: '${{ github.workspace }}/target/guacamole-docker-manager-${{ steps.project.outputs.version }}-jar-with-dependencies-and-exclude-classes.jar'
70+
asset_name: guacamole-docker-manager-jar-with-dependencies-and-exclude-classes.jar
71+
asset_content_type: application/jar

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
distribution: 'temurin'
2929
cache: maven
3030
- name: Build with Maven
31-
run: mvn -B package --file pom.xml
31+
run: mvn -B package assembly:single --file pom.xml
3232

3333
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
3434
- name: Update dependency graph

0 commit comments

Comments
 (0)