Change to neoforge.mods.toml #9
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
# Automatically build the project and run any configured tests for every push and submitted pull request. | |
# Provides a first line of defence against bad commits! | |
# Removed if statement inside capture build artifacts because matrix.java will always be 21. | |
# Cleaned up the yml file with better formatting and clear separation for better understanding. | |
name: 🔨 Build ThreatenGL | |
on: [pull_request, push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [21] | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: Setup JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: "temurin" | |
- name: Make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: Build ThreatenGL | |
run: ./gradlew build | |
- name: Bundle mod loader jars for upload | |
run: | | |
mkdir gh-artifacts-upload | |
mv fabric/build/libs/*.jar gh-artifacts-upload/ | |
mv forge/build/libs/*.jar gh-artifacts-upload/ | |
mv neoforge/build/libs/*.jar gh-artifacts-upload/ | |
mv quilt/build/libs/*.jar gh-artifacts-upload/ | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Built Artifacts | |
path: gh-artifacts-upload/ |