feat: 大量api添加 #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle | |
name: Java CI with Gradle | |
on: | |
push: | |
branches: [ "master" ] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [ "master" ] | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
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 buildPluginLegacy | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: onebot-mirai | |
path: build/mirai/OneBot-Mirai-*.mirai.jar |