mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-29 14:26:10 +00:00
Merge pull request #137 from fumbling644o/development-actions
Workflow: Use Ubuntu and trigger on PR actions
This commit is contained in:
commit
002edb8474
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -3,9 +3,14 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "stable"
|
- "stable"
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
jobs:
|
jobs:
|
||||||
Build-Server-Jar:
|
Build-Server-Jar:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -13,12 +18,11 @@ jobs:
|
|||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: '8'
|
java-version: '16'
|
||||||
- name: Run Gradle
|
- name: Run Gradle
|
||||||
run: .\gradlew.bat && .\gradlew jar
|
run: ./gradlew && ./gradlew jar
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Grasscutter
|
name: Grasscutter
|
||||||
path: grasscutter.jar
|
path: grasscutter.jar
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user