Skip to content

patch-2 (#21)

patch-2 (#21) #33

Workflow file for this run

# 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: Build
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 buildPlugin
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: onebot-mirai
path: build/mirai/OneBot-Mirai-*.mirai*.jar