Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nthxny authored Feb 7, 2024
0 parents commit 297354c
Show file tree
Hide file tree
Showing 41 changed files with 2,688 additions and 0 deletions.
96 changes: 96 additions & 0 deletions .github/workflows/build-multiver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: build (multiversion)
on:
release:
types: [created]

jobs:
build_1_19:
if: "!startsWith(github.event.head_commit.message, '[skip]')"
strategy:
matrix:
java: [ 17 ]
runs-on: ubuntu-latest
steps:
- name: steal code from repository
uses: actions/checkout@v3

- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: cache gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle

- name: give gradle permission to murder github servers
run: chmod +x ./gradlew

- name: gradle murders github servers
run: ./gradlew assemble -PmcVer="1.19.2"

- name: Publish Fabric
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CF_API_TOKEN }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
run: ./gradlew -PmcVer="1.19.2" :fabric:build :fabric:publish :fabric:publishMods

- name: Publish Forge
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CF_API_TOKEN }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
run: ./gradlew -PmcVer="1.19.2" :forge:build :forge:publish :forge:publishMods

build_1_20:
if: "!startsWith(github.event.head_commit.message, '[skip]')"
strategy:
matrix:
java: [ 17 ]
runs-on: ubuntu-latest
steps:

- name: steal code from repository
uses: actions/checkout@v3

- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: cache gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle

- name: give gradle permission to murder github servers
run: chmod +x ./gradlew

- name: gradle murders github servers
run: ./gradlew assemble -PmcVer="1.20.1"

- name: Publish Fabric
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CF_API_TOKEN }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
run: ./gradlew -PmcVer="1.20.1" :fabric:build :fabric:publish :fabric:publishMods

- name: Publish Forge
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CF_API_TOKEN }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
run: ./gradlew -PmcVer="1.20.1" :forge:build :forge:publish :forge:publishMods
118 changes: 118 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# User-specific stuff
.idea/

*.iml
*.ipr
*.iws

# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

.gradle
build/

# Ignore Gradle GUI config
gradle-app.setting

# Cache of project
.gradletasknamecache

**/build/

# Common working directory
run/

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
19 changes: 19 additions & 0 deletions 1.19.2.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# suppress inspection "UnusedProperty" for whole file
minecraft_version=1.19.2

# Mappings
# https://lambdaurora.dev/tools/import_quilt.html
quilt = 22
# https://parchmentmc.org/docs/getting-started
parchment = 2022.11.27

# Fabric - https://fabricmc.net/develop/
fabric=0.14.21
fabric_api=0.76.0

# Forge - https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.html
forge=43.2.4

farmers_delight = 5051241
cloth_config_version=8.3.115
architectury_version=6.5.85
19 changes: 19 additions & 0 deletions 1.20.1.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# suppress inspection "UnusedProperty" for whole file
minecraft_version=1.20.1

# Mappings
# https://lambdaurora.dev/tools/import_quilt.html
quilt = 20
# https://parchmentmc.org/docs/getting-started
parchment = 2023.08.20

# Fabric - https://fabricmc.net/develop/
fabric=0.15.1
fabric_api=0.87.0

# Forge - https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.html
forge=47.1.43

farmers_delight = 4679319
cloth_config_version=11.0.99
architectury_version=9.1.12
Loading

0 comments on commit 297354c

Please sign in to comment.