Skip to content

Commit

Permalink
Update branding, add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahwinsley committed Feb 19, 2024
1 parent 34a81e9 commit 116cff4
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 10 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened ]

jobs:
build:

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/upload-artifact@v3
with:
name: jar
path: |
build/libs/*.jar
build/checksums/*.sha512
retention-days: 7

51 changes: 51 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Release Build

on:
release:
types:
- published

jobs:
build:

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Upload assets to GitHub, Modrinth and CurseForge
uses: Kir-Antipov/[email protected]
with:
modrinth-id: TODO
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

curseforge-id: TODO
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

github-token: ${{ secrets.GITHUB_TOKEN }}

name: ""
loaders: |
forge
neoforge
- name: Upload checksum
id: upload-release-assets
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["build/checksums/*.sha512"]'
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Inventory Tweaks Renewed
# Inventory Tweaks Refoxed

An updated fork of Inventory Tweaks Renewed.

A spiritual successor of Inventory Tweaks, for 1.15 and later.

Expand All @@ -8,5 +10,3 @@ Features:
- Inventory Sorting
- Quick view of item quantities

1.16 is marked Alpha and may introduce gamebreaking bugs and missing features, please report these issues.

14 changes: 7 additions & 7 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ modId="invtweaks" #mandatory
# The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
version="${file.jarVersion}" #mandatory
# A display name for the mod
displayName="Inventory Tweaks Renewed" #mandatory
displayName="Inventory Tweaks Refoxed" #mandatory
# A URL to query for updates for this mod. See the JSON update specification <here>
# updateJSONURL="http://myurl.me/" #TODO add?
# A URL for the "homepage" for this mod, displayed in the mod UI
displayURL="https://www.curseforge.com/minecraft/mc-mods/inventory-tweaks-renewed"
displayURL="https://www.curseforge.com/minecraft/mc-mods/inventory-tweaks-refoxed"
# A file name (in the root of the mod JAR) containing a logo for display
logoFile="logo.png"
# A text field displayed in the mod UI
Expand Down Expand Up @@ -60,8 +60,8 @@ Inventory Tweaks, but for modern versions of Minecraft.
ordering="NONE"
side="BOTH"
[[dependencies.invtweaks]]
modId="jei"
mandatory=false
versionRange="[jei-1.20.1-forge-15.2.0.27,)"
ordering="AFTER"
side="BOTH"
modId="jei"
mandatory=false
versionRange="[jei-1.20.1-forge-15.2.0.27,)"
ordering="AFTER"
side="BOTH"

0 comments on commit 116cff4

Please sign in to comment.