forked from yyuueexxiinngg/onebot-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.02 KB
/
gradle-ci.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
39
40
41
42
43
44
45
46
47
48
name: Gradle CI
on:
push:
branches: [ master, dev ]
paths-ignore:
- '**.md'
pull_request:
branches: [ master, dev ]
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Clone repository
- name: Prepare Java 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build project
run: |
gradle wrapper
bash gradlew shadow
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: onebot-mirai
path: onebot-mirai/build/libs/onebot-mirai-*-all.jar
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: onebot-kotlin
path: onebot-kotlin/build/libs/onebot-kotlin-*-all.jar