mirror of
https://github.com/SparklyPower/SparklyPaper.git
synced 2025-12-26 10:29:19 +00:00
new fork who dis - First commit 🎉
This commit is contained in:
40
.github/workflows/sparklypaper.yml
vendored
Normal file
40
.github/workflows/sparklypaper.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# From Airplane: https://github.com/TECHNOVE/Airplane/blob/master/.github/workflows/airplanelite.yml
|
||||
# Thanks Airplane! :3
|
||||
name: Build main
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
java: [11, 8]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-maven-
|
||||
|
||||
- name: Patch SparklyPaper
|
||||
run: |
|
||||
git config --global user.email "you@example.com"
|
||||
git config --global user.name "Your Name"
|
||||
./gradlew applyPatches
|
||||
./gradlew build
|
||||
./gradlew paperclip
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: SparklyPaper-JDK${{ matrix.java }}
|
||||
path: launcher-sparklypaper.jar
|
||||
Reference in New Issue
Block a user