Update build.yml

This commit is contained in:
Ovydux 2020-07-20 17:24:21 +03:00 committed by GitHub
parent 97163e46ea
commit 688f9d6da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ jobs:
strategy: strategy:
matrix: matrix:
java: [11, 8, 14] java: [14, 11, 8]
steps: steps:
- name: Cancel Previous Runs - name: Cancel Previous Runs
@ -73,6 +73,6 @@ jobs:
upload_url: https://uploads.github.com/repos/tr7zw/YAPFA/releases/28703947/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part upload_url: https://uploads.github.com/repos/tr7zw/YAPFA/releases/28703947/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part
release_id: 28703947 # same as above (id can just be taken out the upload_url, it's used to find old releases) release_id: 28703947 # same as above (id can just be taken out the upload_url, it's used to find old releases)
asset_path: target/YAPFA-1.16.1-paperclip.jar # path to archive to upload asset_path: target/YAPFA-1.16.1-paperclip.jar # path to archive to upload
asset_name: YAPFA-1.16.1-${{ matrix.java }}-$$-paperclip.jar # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash asset_name: YAPFA-1.16.1-${{ matrix.java }}JDK-$$-paperclip.jar # 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 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 max_releases: 3 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted