diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e680c33..f85ae18 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8be99df --- /dev/null +++ b/.github/workflows/release.yml @@ -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. \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 570ed2b..79ada09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## `0.2.3` *2024/1/27* +* 部分bug修复 + ## `0.2.2` *2024/1/19* * http api与事件上报完成 * 修复缓存问题