Skip to content

(gradle) add mc version in archive name #1

(gradle) add mc version in archive name

(gradle) add mc version in archive name #1

name: build fabric
on:
push:
tags:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
# Example: 2.0.0-MC1.21.x-fabric
- "[0-9]+.[0-9]+.[0-9]+-MC[0-9]+.[0-9]+.[0-9x]+-neoforge"
permissions:
contents: write
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Gradle Build
run: ./gradlew :fabric:build
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: CHANGELOG_NEOFORGE.md
files: ./neoforge/build/libs/**