-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
1,474 additions
and
869 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,51 +9,85 @@ jobs: | |
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'microsoft' | ||
java-version: 17 | ||
- name: Get current time | ||
uses: srfrnk/current-time@master | ||
id: current-time | ||
with: | ||
format: YYYYMMDDHHmmss | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: Setup ENV | ||
run: echo "TAG=${GITHUB_REF:10}" >> $GITHUB_ENV | ||
run: echo "TAG=${{ github.ref_name }}" >> $GITHUB_ENV | ||
- name: Copy Maven Upload URL | ||
id: extract_maven_upload_url | ||
run: echo "maven_upload_url=${{secrets.MAVEN_UPLOAD_URL}}" >> $GITHUB_OUTPUT | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Assemble jar with Gradle | ||
run: chmod +x ./gradlew | ||
- name: Build with Gradle | ||
env: | ||
BUILD_TIME: ${{ steps.current-time.outputs.formattedTime }} | ||
BUILD_NUMBER: ${{ github.run_number }} | ||
run: ./gradlew assemble | ||
- name: Publish | ||
id: publish_release_assets | ||
- name: Maven Release | ||
if: steps.extract_maven_upload_url.outputs.maven_upload_url | ||
continue-on-error: true | ||
run: ./gradlew publish | ||
env: | ||
BUILD_TIME: ${{ steps.current-time.outputs.formattedTime }} | ||
BUILD_NUMBER: ${{ github.run_number }} | ||
MAVEN_UPLOAD_URL: ${{ secrets.ONYX_MAVEN_UPLOAD_URL }} | ||
MAVEN_UPLOAD_USER: ${{ secrets.ONYX_MAVEN_USERNAME }} | ||
MAVEN_UPLOAD_PASSWORD: ${{ secrets.ONYX_MAVEN_ACCESS_TOKEN }} | ||
MODRINTH_USER: ${{ secrets.MODRINTH_USER }} | ||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | ||
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} | ||
- name: Upload release assets | ||
id: upload_release_assets | ||
uses: AButler/[email protected] | ||
with: | ||
release-tag: ${{ env.TAG }} | ||
repo-token: ${{ github.token }} | ||
files: 'build/libs/*[!-dev].jar' | ||
MAVEN_UPLOAD_URL: ${{ secrets.MAVEN_UPLOAD_URL }} | ||
MAVEN_UPLOAD_USERNAME: ${{ secrets.MAVEN_UPLOAD_USERNAME }} | ||
MAVEN_UPLOAD_PASSWORD: ${{ secrets.MAVEN_UPLOAD_PASSWORD }} | ||
- name: Upload build artifacts (Common) | ||
continue-on-error: true | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.event.repository.name }}-Common-${{ github.sha }} | ||
path: | | ||
Common/build/libs/!(*-@(dev|slim)).jar | ||
- name: Upload build artifacts (NeoForge) | ||
continue-on-error: true | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.event.repository.name }}-NeoForge-${{ github.sha }} | ||
path: | | ||
NeoForge/build/libs/!(*-@(dev|slim)).jar | ||
- name: Upload build artifacts (Quilt) | ||
continue-on-error: true | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.event.repository.name }}-Quilt-${{ github.sha }} | ||
path: | | ||
Quilt/build/libs/!(*-@(dev|slim)).jar | ||
- name: Publish (GitHub Releases) | ||
continue-on-error: true | ||
uses: Kir-Antipov/mc-publish@423b200ec84e6eefad726549c72513d7a9b4c2c0 # (new) v3.3 | ||
with: | ||
github-token: ${{ github.token }} | ||
files: | | ||
**/build/libs/!(*-@(dev|sources|javadoc|slim)).jar | ||
**/build/libs/*-@(sources|javadoc).jar | ||
- name: Publish (NeoForge) | ||
continue-on-error: true | ||
uses: Kir-Antipov/mc-publish@423b200ec84e6eefad726549c72513d7a9b4c2c0 # (new) v3.3 | ||
with: | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
version: ${{ github.ref_name }}+NeoForge | ||
files: | | ||
NeoForge/build/libs/!(*-@(dev|sources|javadoc|slim)).jar | ||
NeoForge/build/libs/*-@(sources|javadoc).jar | ||
- name: Publish (Quilt) | ||
continue-on-error: true | ||
uses: Kir-Antipov/mc-publish@423b200ec84e6eefad726549c72513d7a9b4c2c0 # (new) v3.3 | ||
with: | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
version: ${{ github.ref_name }}+Quilt | ||
files: | | ||
Quilt/build/libs/!(*-@(dev|sources|javadoc|slim)).jar | ||
Quilt/build/libs/*-@(sources|javadoc).jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,123 @@ | ||
# gradle | ||
|
||
.gradle/ | ||
build/ | ||
out/ | ||
|
||
# idea | ||
|
||
# User-specific stuff | ||
.idea/ | ||
|
||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# vscode | ||
# IntelliJ | ||
out/ | ||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
.settings/ | ||
.vscode/ | ||
bin/ | ||
.classpath | ||
.project | ||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# fabric | ||
# Compiled class file | ||
*.class | ||
|
||
run/ | ||
classes/ | ||
# 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/ | ||
|
||
# Misc | ||
mcModsRepo/ | ||
.tmp/ | ||
.data/ | ||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
alias libs.plugins.vanilla.gradle | ||
} | ||
|
||
minecraft { | ||
version(libs.versions.minecraft.get()) | ||
if (file("src/main/resources/${mod_id}.accesswidener").exists()) { | ||
accessWideners(file("src/main/resources/${mod_id}.accesswidener")) | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly libs.bundles.mixin | ||
compileOnly libs.jetbrains.annotations | ||
|
||
implementation libs.resourcefulconfig | ||
|
||
// compileOnly "${libs.emi.asProvider().get()}:api" | ||
} |
Oops, something went wrong.