mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2025-03-02 11:31:07 +01:00
Merge pull request #20 from tr7zw/budgidiere-patch-1
Faster Vroom Vroom
This commit is contained in:
commit
14569ab865
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
@ -1,7 +1,18 @@
|
||||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
name: YAPFA Build Script
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- '*.md'
|
||||
branches:
|
||||
- dev/ver/1.16.1
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '*.md'
|
||||
branches:
|
||||
- dev/ver/1.16.1
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -13,13 +24,17 @@ jobs:
|
||||
java: [11, 8, 14]
|
||||
|
||||
steps:
|
||||
- name: Cancel Previous Runs
|
||||
uses: styfle/cancel-workflow-action@0.4.1
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v1.3.0
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: Pull Maven Cache
|
||||
uses: actions/cache@v1.1.2
|
||||
uses: actions/cache@v2
|
||||
id: maven-cache
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
@ -45,7 +60,19 @@ jobs:
|
||||
run: |
|
||||
./yapfa full
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v2-preview
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: YAPFA-${{ matrix.java }}
|
||||
path: target/YAPFA-1.16.1-paperclip.jar
|
||||
- name: Deploy Release
|
||||
if: github.ref == 'refs/heads/dev/ver/1.16.1'
|
||||
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/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)
|
||||
asset_path: target/YAPFA-1.16.1-paperclip.jar # path to archive to upload
|
||||
asset_name: YAPFA-1.16.1-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