Skip to content

```refactor(mcbot): refactor command and bot API for permission overh… #6

```refactor(mcbot): refactor command and bot API for permission overh…

```refactor(mcbot): refactor command and bot API for permission overh… #6

Workflow file for this run

name: 'Build'
on:
workflow_call:
push:
branches:
- 'multi/*'
permissions:
contents: read
statuses: write
jobs:
build:
name: 'Build'
runs-on: windows-latest
strategy:
matrix:
loader: [ 'Forge', 'Fabric' ]
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
with:
fetch-depth: 100
fetch-tags: true
- name: 'Set up JDK 17'
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: 'Build ${{ matrix.loader }} with Gradle'
uses: gradle/gradle-build-action@v2
with:
arguments: :${{ matrix.loader }}:build
cache-read-only: false
- name: 'Upload ${{ matrix.loader }} artifacts'
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: 'Artifacts-${{ matrix.loader }}'
path: ${{ matrix.loader }}/build/libs/*.jar