generated from project-mirai/mirai-console-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 856 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Gradle CI
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
name: Gradle-Build
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
cache: 'gradle'
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew buildPlugin
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: my-artifact
path: build/mirai/mirai-minecraftupdate-check-*.mirai2.jar
if-no-files-found: error