Skip to content

Commit

Permalink
initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Aug 12, 2022
0 parents commit cb4a062
Show file tree
Hide file tree
Showing 26 changed files with 1,088 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Bug Report
description: File a bug report
labels: ["bug"]
assignees: [PssbleTrngle]

body:
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
validations:
required: true

- type: input
id: version-version
attributes:
label: Mod Version
validations:
required: true

- type: dropdown
id: minecraft-version
attributes:
label: Minecraft Version
multiple: false
options:
- 1.18

- type: input
id: loader-version
attributes:
label: Forge Version
validations:
required: true

- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Feature Request
description: Suggest a feature
labels: ["enhancement", "feature", "feature-request"]
assignees: [PssbleTrngle]

body:
- type: textarea
id: idea
attributes:
label: Describe the feature you have in mind.
placeholder: So I was think about...
validations:
required: true

- type: textarea
id: problem-solving
attributes:
label: Does this solve a particular problem?
placeholder: Yes, it balances...
validations:
required: false
63 changes: 63 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Release
on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin

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

- run: chmod +x ./gradlew

- name: Update mod version
uses: christian-draeger/[email protected]
with:
path: "gradle.properties"
property: "mod_version"
value: ${{ github.event.release.tag_name }}

- name: build
run: ./gradlew build

- name: Upload to github releases
if: ${{ github.event_name == 'release' }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/libs/thermomix-${{ github.event.release.tag_name }}.jar
asset_name: thermomix-${{ github.event.release.tag_name }}.jar
asset_content_type: application/java-archive

- name: publish to github packages
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: upload to curseforge
continue-on-error: true
run: ./gradlew curseforge
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
CHANGELOG: ${{ github.event.release.body }}

- name: upload to modrinth
continue-on-error: true
run: ./gradlew modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CHANGELOG: ${{ github.event.release.body }}
42 changes: 42 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Analyze
on:
push:
branches: [ 1.18.x ]

jobs:
build:
name: Analyze
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17

- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- run: chmod +x ./gradlew

- name: Cache SonarQube packages
uses: actions/cache@v2
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
run: ./gradlew build sonarqube
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# eclipse
bin
*.launch
.settings
.metadata
.classpath
.project

# idea
out
*.ipr
*.iws
*.iml
.idea

# gradle
build
.gradle

# other
eclipse
run

# Files from Forge MDK
forge*changelog.txt
35 changes: 35 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Copyright (c) 2020 possible_triangle. All Rights Reserved.

Permissions are hereby granted below to any person having a copy of
this software and/or its associated files:

Usage - You may use this software for private and public use. You may use this software as a library
or integrate it with your code with the predicate being it must be downloaded from our sources and a soft or hard dependency.
Copying - You may copy this software for private use or to contribute to this software.
Modification - You may modify this software for private use or to contribute to this software.
Publishing - You may not publish copies of this software.
Distributing - You may not distribute this software.
Sublicensing - You may not sublicense this software.
Selling - You may not sell this software.

Modpack Clarification:
Permission is granted for Modpacks to include this software as long
as the copy of this software in the pack is an unmodified public copy
from our public sources and is marked as included in the Modpack.

Definition of 'Our Sources' in this license:
Our Sources in this license means a copy
of this software or its associated files that come
directly from the owners of this software, an example
are the files uploaded by us on our Curse Page.

The above copyright notice and these permission notices shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Thermomix
Loading

0 comments on commit cb4a062

Please sign in to comment.