Skip to content

ready 4 prod workflow #6

ready 4 prod workflow

ready 4 prod workflow #6

Workflow file for this run

name: build-artifacts
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [forge, neoforge, fabric]
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build artifacts
run: |
if [ ${{ matrix.platform }} == "neoforge" ]; then
./gradlew clean neoforge:build
elif [ ${{ matrix.platform }} == "forge" ]; then
./gradlew clean forge:build
elif [ ${{ matrix.platform }} == "fabric" ]; then
./gradlew clean fabric:build
fi
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.platform }}
path: ${{ matrix.platform }}/build/libs