Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
i-make-robots authored Jul 2, 2020
1 parent c5bab05 commit 5f2ca45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

0 comments on commit 5f2ca45

Please sign in to comment.