Skip to content

Update Magic Mongo again... again... #49

Update Magic Mongo again... again...

Update Magic Mongo again... again... #49

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build
on:
push:
branches:
- master
paths:
- 'gradle/**'
- 'library/**'
- 'example-bot/**'
- 'build.gradle.kts'
- 'settings.gradle.kts'
- 'gradlew'
- 'gradlew.bat'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[no-build]')"
steps:
- uses: "actions/checkout@v3.1.0"
- uses: "gradle/wrapper-validation-action@v1.0.5"
- name: Set up JDK
uses: "actions/setup-java@v3.9.0"
with:
distribution: temurin
java-version: 19
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test with Gradle
run: ./gradlew test
- name: Build jar with Gradle
run: ./gradlew build
- name: Upload artifacts
uses: "actions/upload-artifact@v3.1.1"
with:
name: Lazy Library
path: |
library/build/libs/*.jar
example-bot/build/libs/*.jar