Skip to content

Commit 5f2ca45

Browse files
Update maven.yml
1 parent c5bab05 commit 5f2ca45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/maven.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Build with Maven
2929
run: mvn -B package --file pom.xml
3030

31+
- name: prepare package for release
32+
run: mv ./target/Makelangelo-*-with-dependencies.jar ./target/to-upload.jar
33+
3134
# from https://github.com/marketplace/actions/deploy-nightly
3235
- name: Deploy Windows release
3336
#if: matrix.os == 'windows-latest'
@@ -39,7 +42,7 @@ jobs:
3942
# in your browser and copy the full "upload_url" value including the {?name,label} part
4043
upload_url: https://uploads.github.com/repos/MarginallyClever/Makelangelo-software/releases/27107052/assets{?name,label}
4144
release_id: 27107052 # same as above (id can just be taken out the upload_url, it's used to find old releases)
42-
asset_path: ./target/*-with-dependencies.jar # path to archive to upload
45+
asset_path: ./target/to-upload.jar # path to archive to upload
4346
asset_name: makelangelo_windows-nightly-$$.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
4447
asset_content_type: application/zip # required by GitHub API
4548
max_releases: 3 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted

0 commit comments

Comments
 (0)