2022-04-22 03:55:43 +00:00
|
|
|
name: "Build"
|
2022-04-22 04:21:08 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "stable"
|
2022-04-23 02:02:41 +00:00
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
- reopened
|
2022-04-22 03:55:43 +00:00
|
|
|
jobs:
|
|
|
|
Build-Server-Jar:
|
2022-04-23 02:02:41 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-04-22 03:55:43 +00:00
|
|
|
steps:
|
2022-04-22 04:13:38 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Java
|
|
|
|
uses: actions/setup-java@v3
|
2022-04-22 03:57:30 +00:00
|
|
|
with:
|
|
|
|
distribution: temurin
|
2022-04-25 08:57:46 +00:00
|
|
|
java-version: '17'
|
2022-04-22 04:13:38 +00:00
|
|
|
- name: Run Gradle
|
2022-04-23 02:02:41 +00:00
|
|
|
run: ./gradlew && ./gradlew jar
|
2022-04-22 04:13:38 +00:00
|
|
|
- name: Upload build
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: Grasscutter
|
|
|
|
path: grasscutter.jar
|