From 5f2ca45ccbbb03a5cdbc604031688abe0cb9bbf7 Mon Sep 17 00:00:00 2001 From: Dan Royer Date: Thu, 2 Jul 2020 12:17:18 -0700 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 679105651..ae0bee96b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -28,6 +28,9 @@ jobs: - name: Build with Maven run: mvn -B package --file pom.xml + - name: prepare package for release + run: mv ./target/Makelangelo-*-with-dependencies.jar ./target/to-upload.jar + # from https://github.com/marketplace/actions/deploy-nightly - name: Deploy Windows release #if: matrix.os == 'windows-latest' @@ -39,7 +42,7 @@ jobs: # in your browser and copy the full "upload_url" value including the {?name,label} part upload_url: https://uploads.github.com/repos/MarginallyClever/Makelangelo-software/releases/27107052/assets{?name,label} release_id: 27107052 # same as above (id can just be taken out the upload_url, it's used to find old releases) - asset_path: ./target/*-with-dependencies.jar # path to archive to upload + asset_path: ./target/to-upload.jar # path to archive to upload asset_name: makelangelo_windows-nightly-$$.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash asset_content_type: application/zip # required by GitHub API max_releases: 3 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted