Skip to content

Commit 1cf1645

Browse files
committed
Merge branch '1.20.1' of https://github.com/code-onigiri/GregTech-Modern into 1.20.1
2 parents e2081ea + 6ad0d47 commit 1cf1645

File tree

645 files changed

+17443
-14002
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

645 files changed

+17443
-14002
lines changed

.devcontainer/devcontainer.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
3+
{
4+
"name": "Docs Codespace",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
7+
"workspaceMount": "source=${localWorkspaceFolder},target=/modern,type=bind",
8+
"workspaceFolder": "/modern/docs",
9+
"features": {
10+
"ghcr.io/devcontainers/features/python:1": {
11+
"installTools": true,
12+
"version": "3.11"
13+
}
14+
},
15+
16+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17+
"forwardPorts": [8000],
18+
19+
// Use 'postCreateCommand' to run commands after the container is created.
20+
"postCreateCommand": "pip3 install --user -r requirements.txt",
21+
22+
// Configure tool-specific properties.
23+
"customizations": {
24+
"vscode": {
25+
"settings": {
26+
"yaml.schemas": {
27+
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
28+
},
29+
"yaml.customTags": [
30+
"!ENV scalar",
31+
"!ENV sequence",
32+
"tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg",
33+
"tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji",
34+
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
35+
],
36+
"git.openRepositoryInParentFolders": "always",
37+
"git.autofetch": "all",
38+
"git.autoStash": true
39+
},
40+
"extensions": ["redhat.vscode-yaml"]
41+
}
42+
}
43+
44+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
45+
// "remoteUser": "root"
46+
}
47+

.github/ISSUE_TEMPLATE/000-bug-report.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,40 @@ body:
2222
id: gtceu-version
2323
attributes:
2424
label: GregTech CEu Version
25-
description: The version of Gregtech CEu you were using when this bug was encountered. If you do not know where to find this, look for the mod jar file in the mods folder, or in the mods viewer in-game.
25+
description: The version of GregTech CEu you were using when this bug was encountered. If you do not know where to find this, look for the mod jar file in the mods folder, or in the mods viewer in-game.
2626
placeholder: "Example: v2.3.4"
2727
validations:
2828
required: true
29-
- type: input
29+
- type: dropdown
3030
id: mc-version
3131
attributes:
3232
label: Minecraft Version
33-
description: The version of Minecraft you were using when this bug was encountered. If you do not know where to find this, in the main menu at the bottom left.
34-
placeholder: "Example: 1.20.1"
33+
description: The version of Minecraft you were using when this bug was encountered. If you do not know where to find this, it is in the bottom left of the main menu. Any version not listed is not supported.
34+
options:
35+
- "1.20.1 Forge"
36+
- "1.21.1 NeoForge"
3537
validations:
3638
required: true
3739
- type: dropdown
3840
id: recipe-viewer
3941
attributes:
4042
label: Recipe Viewer Installed
41-
description: The recipe viewer installed. If you were not using addons, please leave this field blank.
43+
description: The recipe viewer installed.
4244
options:
4345
- "JEI"
4446
- "REI"
4547
- "EMI"
46-
- "No Recipe Viewer"
4748
validations:
4849
required: false
49-
- type: input
50+
- type: dropdown
5051
id: environment
5152
attributes:
5253
label: Environment
53-
description: "How you were playing on the world. Typical answers include: Singleplayer, Open to LAN, Dedicated Server."
54-
placeholder: "Example: Singleplayer"
54+
description: How you were playing on the world. Hybrid servers are unsupported.
55+
options:
56+
- "Singleplayer"
57+
- "Multiplayer - Open to LAN"
58+
- "Multiplayer - Dedicated Server"
5559
validations:
5660
required: true
5761
- type: dropdown
@@ -69,8 +73,8 @@ body:
6973
id: other-mods
7074
attributes:
7175
label: Other Installed Mods
72-
description: List all mods you have installed here, or the name of the modpack you're playing.
73-
placeholder: "Example: ATM9, Embeddium, NuclearCraft Neoteric, AE2..."
76+
description: Enter the name of the modpack you're playing, or list all mods you have installed here.
77+
placeholder: "Example: Cosmic Frontiers, Monifactory, Embeddium, NuclearCraft Neoteric, AE2,..."
7478
validations:
7579
required: true
7680
- type: textarea

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: GregTech CEu Discord
4+
url: https://discord.gg/bWSWuYvURP
5+
about: Join us on Discord to discuss questions, bugs, and more.

.github/workflows/auto-build.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Latest Build
33
on:
44
push:
55
branches: ['1.20.1', '1.21']
6-
paths-ignore: ['.github/**', '**/*.md']
6+
paths: ['src/**', '**/*.gradle', 'gradle.properties']
77

88
concurrency:
99
group: auto-build-${{ github.ref }}
@@ -13,24 +13,31 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
env:
16+
GITHUB_TOKEN: ${{ github.token }}
1617
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
1718
MAVEN_USER: ${{ secrets.MAVEN_USER }}
1819
SNAPSHOT: true
19-
GITHUB_TOKEN: ${{ github.token }}
20+
CI: true
2021
permissions:
2122
contents: write
2223
steps:
2324
- uses: actions/checkout@v4
2425
- name: Setup Build
2526
uses: ./.github/actions/build_setup
26-
- name: Get Version
27+
- name: Get Mod Version
2728
id: ver
2829
run: echo "version=$(./gradlew -q printVersion)" >> $GITHUB_OUTPUT
30+
- name: Version Suffix
31+
id: suffix
32+
run: echo "VERSION_SUFFIX=$(echo "${{ github.sha }}" | cut -c 1-7)" >> $GITHUB_ENV
33+
- run: git fetch origin 1.20.1
2934
- name: Build
3035
run: ./gradlew build --build-cache
3136
- name: Publish to Maven
3237
if: github.repository_owner == 'GregTechCEu'
3338
run: ./gradlew publish --build-cache
39+
- name: Rename Jars
40+
run: for file in build/libs/*; do mv "$file" "${file/SHOT/SHOT-$(date --utc '+%Y%m%d-%H%M%S')-${{ env.VERSION_SUFFIX }}}"; done;
3441
- name: Upload Artifacts
3542
uses: actions/upload-artifact@v4
3643
with:
@@ -51,10 +58,10 @@ jobs:
5158
uses: andelf/nightly-release@46e2d5f80828ecc5c2c3c819eb31186a7cf2156c
5259
with:
5360
tag_name: latest-${{ github.ref_name }}
54-
name: '${{ github.ref_name }}-${{ steps.ver.outputs.version}} SNAPSHOT $$'
61+
name: '${{ github.ref_name }}-${{ steps.ver.outputs.version}} SNAPSHOT ${{ env.VERSION_SUFFIX }}'
5562
prerelease: true
5663
body: |
5764
The latest build of GTM for Minecraft ${{ github.ref_name }}.
5865
Please report any [issues](https://github.com/GregTechCEu/GregTech-Modern/issues).
5966
${{ steps.changelog.outputs.changelog }}
60-
files: build/libs/*.jar
67+
files: build/libs/*.jar

.github/workflows/auto-publish.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

.github/workflows/build-on-push.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ concurrency:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15+
env:
16+
VERSION_SUFFIX: "PR-${{ github.event.number }}"
1517
steps:
1618
- uses: actions/checkout@v4
1719
- name: Check Path Filter
@@ -31,10 +33,20 @@ jobs:
3133
- name: Build
3234
if: steps.filter.outputs.code == 'true'
3335
run: ./gradlew assemble --build-cache
34-
- name: Upload Artifact
36+
- name: Rename Jars
37+
if: steps.filter.outputs.code == 'true'
38+
run: for file in build/libs/*; do mv "$file" "${file/.jar/-${{ env.VERSION_SUFFIX }}.jar}"; done;
39+
- name: Upload All Artifacts
3540
if: steps.filter.outputs.code == 'true'
3641
uses: actions/[email protected]
3742
with:
38-
name: build output
43+
name: Full Package
3944
path: build/libs/*
4045
retention-days: 15
46+
- name: Upload Main Jar
47+
if: steps.filter.outputs.code == 'true'
48+
uses: actions/[email protected]
49+
with:
50+
name: Main Jar
51+
path: build/libs/*[0-9]-PR-*.jar
52+
retention-days: 15

.github/workflows/deploy-pages.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Publish docs via GitHub Pages
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [1.20.1]
6+
paths: ['docs/**']
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: 'pages'
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
name: build docs
20+
runs-on: ubuntu-latest
21+
defaults:
22+
run:
23+
working-directory: './docs'
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
ref: '1.20.1'
28+
sparse-checkout: './docs'
29+
- uses: actions/setup-python@v4
30+
with:
31+
python-version: '3.11'
32+
cache: 'pip'
33+
- run: pip install -r ./requirements.txt
34+
- uses: actions/cache@v4
35+
with:
36+
key: 'mkdocs-cache'
37+
path: './docs/.cache'
38+
- name: Build static files
39+
id: mkdocs
40+
run: mkdocs build
41+
- name: Upload pages as artifact
42+
id: artifact
43+
uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: './docs/site/'
46+
47+
deploy:
48+
runs-on: ubuntu-latest
49+
needs: build
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
steps:
54+
- name: Deploy Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

.github/workflows/format-java.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
code:
3030
- 'src/main/java/**'
3131
- 'src/test/**'
32+
- run: git fetch origin 1.20.1
33+
if: steps.filter.outputs.code == 'true'
3234
- name: Setup Build
3335
if: steps.filter.outputs.code == 'true'
3436
uses: ./.github/actions/build_setup

.github/workflows/manage-pr-labels.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@ name: Pull Request Labels
33

44
# Checks for label once PR has been reviewed or label is applied
55
on:
6-
pull_request_review:
7-
types: [submitted]
86
pull_request:
9-
types: [labeled]
7+
types: [opened, labeled, unlabeled]
108

119
concurrency:
1210
group: pr-labels-${{ github.head_ref }}
1311
cancel-in-progress: true
1412

1513
jobs:
16-
Labels:
17-
name: On Approval
18-
if: github.event_name == 'pull_request' || github.event.review.state == 'approved'
14+
labels:
15+
name: Label Check
1916
runs-on: ubuntu-latest
2017
permissions:
2118
pull-requests: read # needed to utilize required-labels

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
runs-on: ubuntu-latest
3030
permissions:
3131
contents: write
32+
env:
33+
CI: 'true'
3234
outputs:
3335
ver: ${{ steps.ver.outputs.version }}
3436
steps:

0 commit comments

Comments
 (0)