mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-05 02:11:01 +01:00
update workflow
This commit is contained in:
parent
4364306cc2
commit
9b0439eda5
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -5,12 +5,12 @@ on:
|
||||
paths-ignore:
|
||||
- '*.md'
|
||||
branches:
|
||||
- ver/1.16.1
|
||||
- ver/1.16.2
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '*.md'
|
||||
branches:
|
||||
- ver/1.16.1
|
||||
- ver/1.16.2
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -61,16 +61,16 @@ jobs:
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Yatopia-${{ matrix.java }}
|
||||
path: yatopia-1.16.1-paperclip.jar
|
||||
path: yatopia-1.16.2-paperclip.jar
|
||||
- name: Deploy Release
|
||||
if: github.ref == 'refs/heads/ver/1.16.1'
|
||||
if: github.ref == 'refs/heads/ver/1.16.2'
|
||||
uses: WebFreak001/deploy-nightly@v1.0.3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # automatically provided by github actions
|
||||
with:
|
||||
upload_url: https://uploads.github.com/repos/tr7zw/Yatopia/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)
|
||||
asset_path: yatopia-1.16.1-paperclip.jar # path to archive to upload
|
||||
asset_name: Yatopia-1.16.1-JDK${{ matrix.java }}-paperclip.jar # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
|
||||
asset_path: yatopia-1.16.2-paperclip.jar # path to archive to upload
|
||||
asset_name: Yatopia-1.16.2-JDK${{ matrix.java }}-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
|
||||
max_releases: 3 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
|
||||
|
Loading…
Reference in New Issue
Block a user