Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 8 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,16 @@
name: Build mod jar

on:
[workflow_dispatch, push]
workflow_dispatch:
push:
pull_request:

permissions:
contents: read
contents: write

jobs:
build:

if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v6
with:
gradle-version: 9.5.1
name: Set up Gradle
- name: Add permission
run: chmod +x ./gradlew
- name: Execute Gradle build
run: ./gradlew build

- name: Upload a Build Artifact
uses: actions/upload-artifact@v7
with:
path: build/libs
uses: FormlessDragon/.github/.github/workflows/build-mdg.yml@main
secrets: inherit
permissions:
contents: write
36 changes: 36 additions & 0 deletions .github/workflows/issue-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Issue labels

on:
issues:
types:
- closed

permissions:
issues: write

jobs:
complete-closed-issue:
if: contains(github.event.issue.labels.*.name, '处理中')
runs-on: ubuntu-latest

steps:
- name: Move closed issue to completed
uses: actions/github-script@v8
with:
script: |
const { owner, repo } = context.repo;
const issue_number = context.issue.number;

await github.rest.issues.removeLabel({
owner,
repo,
issue_number,
name: '处理中',
});

await github.rest.issues.addLabels({
owner,
repo,
issue_number,
labels: ['已完成'],
});
44 changes: 10 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,17 @@
name: Releases
name: Release tagged build

on:
push:
tags:
- "v*"
tags: ['v*']

permissions:
contents: write
actions: write

jobs:
build:
runs-on: ubuntu-latest
release:
uses: FormlessDragon/.github/.github/workflows/release-mdg.yml@main
secrets: inherit
permissions:
contents: write
env:
RELEASE_TAG: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v6
with:
gradle-version: 9.5.1
name: Set up Gradle
- name: Add permission
run: chmod +x ./gradlew
- name: Set release version
run: |
RELEASE_VERSION="${RELEASE_TAG#v}"
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> "$GITHUB_ENV"
echo "Release tag: ${RELEASE_TAG}"
echo "Release version: ${RELEASE_VERSION}"
- name: Execute Gradle build
run: ./gradlew build -Pmod_version="${RELEASE_VERSION}"

- uses: ncipollo/release-action@v1.21.0
with:
artifacts: "build/libs/*.jar"
generateReleaseNotes: true
allowUpdates: true
actions: write
18 changes: 18 additions & 0 deletions .github/workflows/runtime-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Runtime Test

on:
workflow_dispatch:
workflow_call:
pull_request:
push:
branches: [main]
merge_group:

permissions:
contents: read
actions: write

jobs:
runtime-test:
uses: FormlessDragon/.github/.github/workflows/runtime-test-mdg.yml@main
secrets: inherit
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ gradle-app.setting

# IDEA config
.idea

AGENTS.md
28 changes: 24 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
# AE2-GTIntegration

An addon for Applied Energistics 2 Supergiant and gtceu.
An addon for **Applied Energistics 2 Supergiant** and **GregTech CEu**.

# Features
## Features

- Add a button to enable to ignore integration circuits in JEI recipe.
- Add Circuit Card inspired by [NAE2](https://github.com/AE2-UEL/NAE2/blob/2fe8dede709b6917d880f41085cd5ece9042fa7e/src/main/java/co/neeve/nae2/mixin/upgrades/gregcircuit/MixinDualityInterface.java#L52)
- **Ignore Integration Circuits in JEI Recipe Transfer**
Adds a button to ignore integration circuits when transferring recipes from JEI.

- **Auto-Rename Duplicate Items in JEI Recipe Transfer**
Adds a button to automatically rename identical items when transferring recipes from JEI.

- **Circuit Card**
Inspired by [NAE2](https://github.com/AE2-UEL/NAE2/blob/2fe8dede709b6917d880f41085cd5ece9042fa7e/src/main/java/co/neeve/nae2/mixin/upgrades/gregcircuit/MixinDualityInterface.java#L52).

- **Extended Encoding Term**
Inspired by [Applied Energistics 2 Unofficial](https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial).
Its assets are modified from [Modernity GTNH UI](https://github.com/ModernityGTNH/Modernity-GTNH-UI) and are licensed under [![License: CC BY-NC-SA 3.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%203.0-yellow.svg?style=flat-square)](https://creativecommons.org/licenses/by-nc-sa/3.0/).

## Credits

- [NAE2](https://github.com/AE2-UEL/NAE2) — inspiration for the Circuit Card.
- [Applied Energistics 2 Unofficial](https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial) — inspiration for the Extended Encoding Term.
- [Modernity GTNH UI](https://github.com/ModernityGTNH/Modernity-GTNH-UI) — source of the modified assets used by the Extended Encoding Term, licensed under CC BY-NC-SA 3.0.

## License

The assets modified from [Modernity GTNH UI](https://github.com/ModernityGTNH/Modernity-GTNH-UI) are licensed under [CC BY-NC-SA 3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/).
Loading
Loading