-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (32 loc) · 909 Bytes
/
release.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
name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Make Gradle Wrapper Executable
run: chmod +x ./gradlew
- name: Build project
run: |
gradle wrapper
bash gradlew shadowJar
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/libs/*
body: Please refer to [CHANGELOG.md](https://github.com/cnlimiter/onebot-client/blob/master/CHANGELOG.md) for details.