- 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]>
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
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
|