mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 16:16:46 +00:00
Workflow: Use Ubuntu and add PR triggers
This commit is contained in:
parent
c713b7afb2
commit
3881f84c01
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -3,9 +3,14 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- "stable"
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
jobs:
|
||||
Build-Server-Jar:
|
||||
runs-on: windows-latest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@ -15,10 +20,9 @@ jobs:
|
||||
distribution: temurin
|
||||
java-version: '8'
|
||||
- name: Run Gradle
|
||||
run: .\gradlew.bat && .\gradlew jar
|
||||
run: ./gradlew && ./gradlew jar
|
||||
- name: Upload build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Grasscutter
|
||||
path: grasscutter.jar
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user