feat: workflows build
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
name: build.yml
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ "NukkitMot" ]
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: Make gradlew executable
|
||||
run: chmod +x ./gradlew
|
||||
|
||||
- name: Build
|
||||
uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
arguments: assemble
|
||||
@@ -3,8 +3,6 @@ name: build
|
||||
on:
|
||||
push:
|
||||
branches: [ "NukkitMot" ]
|
||||
pull_request:
|
||||
branches: [ "NukkitMot" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
Reference in New Issue
Block a user