Workflow: Use Ubuntu and add PR triggers

This commit is contained in:
fumbling 2022-04-22 22:02:41 -04:00
parent 3707ee5477
commit d1d8378e15

View File

@ -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
@ -15,10 +20,9 @@ jobs:
distribution: temurin distribution: temurin
java-version: '8' java-version: '8'
- 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