Compare commits

..

No commits in common. "86b5856f38ae3f40d1a28fdd24a7f900027275b4" and "44079faabd7465c3ab633649729e97454e66925e" have entirely different histories.

7 changed files with 130 additions and 1 deletions

17
.github/CONTRIBUTING.md vendored Normal file
View file

@ -0,0 +1,17 @@
First of all, thank you for your efforts in contributing to TechReborn project
In order to ease code review of your pull request, please, go through this checklist.
* The code compiles.
* The code has been developer-tested.
* The code includes javadoc where appropriate.
* The code is tidy (indentation, line length, no commented-out code, no spelling mistakes, etc).
* Proper use of exceptions has been considered. It is fine to throw an exception during init.
* Proper side usage (client vs server)
* Logging is used appropriately. Please, do not spam log files
* Unused imports are eliminated.
* Warnings produced by the IDE are eliminated.
* Are there any leftover stubs or test routines in the code?
* Are there any hardcoded, development only things still in the code?
* Was performance considered?
* Corner cases well documented or any workarounds for a known limitation of the MC, Fabric, RC, etc used.

8
.github/ISSUE_TEMPLATE.md vendored Normal file
View file

@ -0,0 +1,8 @@
Thanks for reporting an issue! However, before you report an issue, please read the following:
* We will not backport to an old version of minecraft. Do not suggest this
* Make sure you're using the latest version of TechReborn, RebornCore, and Fabric before reporting a bug!
* Don't argue with any TechReborn developers. What they say goes. Feel free to suggest a way to implement something, but if they say no, don't push it.
* If you want to suggest something please open an issue, and it will get tagged as a suggestion.
Make sure to delete all this text before you report your issue.

29
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View file

@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**Steps to Reproduce**
Steps to reproduce the behavior:
- First Step
- Second Step
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Environment (please complete the following information with the version):**
- Minecraft: [e.g. 1.14]
- Mod Loader: [e.g. forge, fabric]
**Logs**
Pastebin the log [e.g. `logs/latest.log`] and link it below:
**Additional context**
Add any other context about the problem here.

View file

@ -0,0 +1,10 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''
---
Please don't submit an issue for suggestions/enhancements, post them at https://github.com/TechReborn/TechReborn/discussions/categories/ideas instead. It will be read and voted on by the community.

21
.github/workflows/check.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Check
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java: [ 17-jdk, 19-jdk ]
runs-on: ubuntu-22.04
container:
image: eclipse-temurin:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v3
- run: ./gradlew runDatagen --stacktrace
- run: ./gradlew build --stacktrace -x runDatagen
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/

45
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,45 @@
name: Release
on:
workflow_dispatch:
inputs:
channel:
description: 'Release channel'
required: true
default: 'release'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-22.04
container:
image: eclipse-temurin:19-jdk
options: --user root
steps:
- run: apt update && apt install git -y
- run: git config --global --add safe.directory /__w/TechReborn/TechReborn
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: FabricMC/fabric-action-scripts@v2
id: changelog
with:
context: changelog
workflow_id: release.yml
- run: ./gradlew build publish publishMods --stacktrace -x test
env:
RELEASE_CHANNEL: ${{ github.event.inputs.channel }}
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/

1
.gitignore vendored
View file

@ -12,7 +12,6 @@
/classpath /classpath
/dep /dep
/.vscode /.vscode
/.github
TechReborn.iws TechReborn.iws
TechReborn.ipr TechReborn.ipr