Skip to content

Commit

Permalink
ci: action add
Browse files Browse the repository at this point in the history
添加构建版本以自动发布
  • Loading branch information
cnlimiter committed Jan 30, 2024
1 parent 3e300ca commit 09ded6b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
- name: Build project
run: |
gradle wrapper
bash gradlew buildPluginLegacy
bash gradlew buildPlugin
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: onebot-mirai
path: build/mirai/OneBot-Mirai-*.mirai.jar
path: build/mirai/OneBot-Mirai-*.mirai*.jar
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create 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 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'dragonwell'

- 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 buildPlugin
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/mirai/*
body: Please refer to [CHANGELOG.md](https://github.com/cnlimiter/onebot-mirai/blob/master/CHANGELOG.md) for details.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## `0.2.3` *2024/1/27*
* 部分bug修复

## `0.2.2` *2024/1/19*
* http api与事件上报完成
* 修复缓存问题
Expand Down

0 comments on commit 09ded6b

Please sign in to comment.