Modernize project: migrate to net.blockhost, add CI, metadata, and docs
- Migrate package from me.itskronx11 to net.blockhost across all modules - Add MIT LICENSE and rewrite README with badges, features, and build instructions - Add GitHub Actions CI (build.yml) and release automation (release.yml) - Migrate MC module build files from Groovy to Kotlin DSL (build.gradle.kts) - Update fabric.mod.json with proper metadata, contact info, and java >=21 dep - Remove unused fabricApi configureDataGeneration block - Add .editorconfig and root gradle.properties for shared config - Set GitHub repo description Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
69d5d4071e
commit
f2b75d0981
@@ -0,0 +1,45 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 21
|
||||
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- run: ./gradlew build
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: anarchymod-mc-1.21.8
|
||||
path: mc-1.21.8/build/libs/anarchymod-mc-1.21.8-*.jar
|
||||
if-no-files-found: error
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: anarchymod-mc-1.21.9
|
||||
path: mc-1.21.9/build/libs/anarchymod-mc-1.21.9-*.jar
|
||||
if-no-files-found: error
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: anarchymod-mc-1.21.10
|
||||
path: mc-1.21.10/build/libs/anarchymod-mc-1.21.10-*.jar
|
||||
if-no-files-found: error
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: anarchymod-mc-1.21.11
|
||||
path: mc-1.21.11/build/libs/anarchymod-mc-1.21.11-*.jar
|
||||
if-no-files-found: error
|
||||
@@ -0,0 +1,49 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "Release version (e.g. 1.1.0)"
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 21
|
||||
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Set version
|
||||
run: sed -i "s/version = \".*\"/version = \"${{ inputs.version }}\"/" build.gradle.kts
|
||||
|
||||
- run: ./gradlew build
|
||||
|
||||
- name: Create GitHub Release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh release create "v${{ inputs.version }}" \
|
||||
--title "v${{ inputs.version }}" \
|
||||
--generate-notes \
|
||||
mc-1.21.8/build/libs/anarchymod-mc-1.21.8-${{ inputs.version }}.jar \
|
||||
mc-1.21.9/build/libs/anarchymod-mc-1.21.9-${{ inputs.version }}.jar \
|
||||
mc-1.21.10/build/libs/anarchymod-mc-1.21.10-${{ inputs.version }}.jar \
|
||||
mc-1.21.11/build/libs/anarchymod-mc-1.21.11-${{ inputs.version }}.jar
|
||||
|
||||
- name: Commit version bump
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add build.gradle.kts
|
||||
git commit -m "chore: bump version to ${{ inputs.version }}"
|
||||
git push
|
||||
Reference in New Issue
Block a user