Skip to content

Commit a962ade

Browse files
committed
A new era
- Switch to MDG instead of using FG - Implement CI-based mod publishing - Embed commit hash into the built jar - Log commit hash
1 parent d567f76 commit a962ade

21 files changed

+448
-484
lines changed

Diff for: .github/ISSUE_TEMPLATE/bug.yml

+31-34
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,37 @@ name: I found a bug!
22
description: "Report some other kind of issue. You should ask in the Discord first to make sure it's actually a bug with Create."
33
labels: [ "type: bug" ]
44
body:
5-
- type: textarea
6-
attributes:
7-
label: Description
8-
description: "
9-
Please describe the issue with as much detail as possible.
10-
Explain what happened, and what should have happened instead.
11-
Add images, screenshots, or videos if they could be useful."
12-
validations:
13-
required: true
5+
- type: textarea
6+
attributes:
7+
label: Description
8+
description: >
9+
Please describe the issue with as much detail as possible.
10+
Explain what happened, and what should have happened instead.
11+
Add images, screenshots, or videos if they could be useful.
12+
validations:
13+
required: true
1414

15-
- type: input
16-
attributes:
17-
label: Game Log
18-
description: "
19-
We need the game log for additional information about the bug.
20-
This file can be found in the \"logs\" folder of your Minecraft folder as \"latest.log\".
21-
Please upload the file to https://mclo.gs/ and put the link here.
22-
Do **not** paste the *contents* of the file here, because that will make this issue very hard to read.
23-
"
24-
validations:
25-
required: true
15+
- type: input
16+
attributes:
17+
label: Game Log
18+
description: >
19+
We need the game log for additional information about the bug.
20+
This file can be found in the \"logs\" folder of your Minecraft folder as \"latest.log\".
21+
Please upload the file to https://mclo.gs/ and put the link here.
22+
Do **not** paste the *contents* of the file here, because that will make this issue very hard to read.
23+
validations:
24+
required: true
2625

27-
- type: textarea
28-
attributes:
29-
label: Debug Information
30-
description: "
31-
Please run the \"/create debuginfo\" command in-game.
32-
This will copy useful information to your clipboard that will greatly help with debugging.
33-
Please paste this information here.
34-
If this command does not exist, you can skip this part.
35-
"
36-
validations:
37-
required: false
26+
- type: textarea
27+
attributes:
28+
label: Debug Information
29+
description: >
30+
Please run the \"/create debuginfo\" command in-game.
31+
This will copy useful information to your clipboard that will greatly help with debugging.
32+
Please paste this information here.
33+
validations:
34+
required: true
3835

39-
- type: markdown
40-
attributes:
41-
value: "Thank you for taking the time to make a report and help improve Create!"
36+
- type: markdown
37+
attributes:
38+
value: "Thank you for taking the time to make a report and help improve Create!"

Diff for: .github/ISSUE_TEMPLATE/config.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: true
22
contact_links:
3-
- name: I have a question!
4-
url: https://discord.gg/hmaD7Se
5-
about: Join us on Discord and ask the community.
6-
- name: I have a suggestion or idea!
7-
url: https://discord.gg/hmaD7Se
8-
about: These are best discussed with the community and submitted on Discord.
9-
- name: Talk to us on Discord.
10-
url: https://discord.gg/hmaD7Se
11-
about: Ask questions and get help from the community.
3+
- name: I have a question!
4+
url: https://discord.gg/hmaD7Se
5+
about: Join us on Discord and ask the community.
6+
- name: I have a suggestion or idea!
7+
url: https://discord.gg/hmaD7Se
8+
about: These are best discussed with the community and submitted on Discord.
9+
- name: Talk to us on Discord.
10+
url: https://discord.gg/hmaD7Se
11+
about: Ask questions and get help from the community.

Diff for: .github/ISSUE_TEMPLATE/crash.yml

+20-21
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,25 @@ name: My game crashed!
22
description: Report an issue that crashes the game.
33
labels: [ "type: crash" ]
44
body:
5-
- type: textarea
6-
attributes:
7-
label: Context
8-
description: What were you doing when the game crashed? Add images, screenshots, or videos if they could be useful.
9-
validations:
10-
required: true
5+
- type: textarea
6+
attributes:
7+
label: Context
8+
description: What were you doing when the game crashed? Add images, screenshots, or videos if they could be useful.
9+
validations:
10+
required: true
1111

12-
- type: input
13-
attributes:
14-
label: Crash Report
15-
description: "
16-
We need the crash report to figure out why the crash happened.
17-
This file can be found in the \"crash-reports\" folder of your Minecraft folder.
18-
It will be the newest file there.
19-
Please upload the file to https://mclo.gs/ and put the link here.
20-
Do **not** paste the *contents* of the file here, because that will make this issue very hard to read.
21-
"
22-
validations:
23-
required: true
12+
- type: input
13+
attributes:
14+
label: Crash Report
15+
description: >
16+
We need the crash report to figure out why the crash happened.
17+
This file can be found in the \"crash-reports\" folder of your Minecraft folder.
18+
It will be the newest file there.
19+
Please upload the file to https://mclo.gs/ and put the link here.
20+
Do **not** paste the *contents* of the file here, because that will make this issue very hard to read.
21+
validations:
22+
required: true
2423

25-
- type: markdown
26-
attributes:
27-
value: "Thank you for taking the time to make a report and help improve Create!"
24+
- type: markdown
25+
attributes:
26+
value: "Thank you for taking the time to make a report and help improve Create!"

Diff for: .github/config/label-actions.yml

+34-34
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,53 @@
33
# ----------------------------------- ISSUES ----------------------------------- #
44

55
'env: fabric':
6-
issues:
7-
close: true
8-
close-reason: 'not planned'
9-
comment: >
10-
**Fabric Loader**: This issue tracker is only for the Forge/NeoForge versions of Create. Since you mentioned using Fabric Loader, please reopen this issue on the [Create Fabric issue tracker](https://github.com/Fabricators-of-Create/Create/issues). Thanks!
6+
issues:
7+
close: true
8+
close-reason: 'not planned'
9+
comment: >
10+
**Fabric Loader**: This issue tracker is only for the Forge/NeoForge versions of Create. Since you mentioned using Fabric Loader, please reopen this issue on the [Create Fabric issue tracker](https://github.com/Fabricators-of-Create/Create/issues). Thanks!
1111
1212
'env: hybrid server':
13-
issues:
14-
close: true
15-
close-reason: 'not planned'
16-
comment: >
17-
**Hybrid Server Software**: Create cannot reasonably support hybrid server software, such as [MohistMC](https://mohistmc.com/), as their changes under the hood make it difficult for larger mods to function properly. If you encounter this issue on official Forge/NeoForge server software, feel free to open a new issue. Otherwise, consider reporting this issue to the hybrid server software you are using. Thanks!
13+
issues:
14+
close: true
15+
close-reason: 'not planned'
16+
comment: >
17+
**Hybrid Server Software**: Create cannot reasonably support hybrid server software, such as [MohistMC](https://mohistmc.com/), as their changes under the hood make it difficult for larger mods to function properly. If you encounter this issue on official Forge/NeoForge server software, feel free to open a new issue. Otherwise, consider reporting this issue to the hybrid server software you are using. Thanks!
1818
1919
'env: outdated create version':
20-
issues:
21-
close: true
22-
close-reason: 'not planned'
23-
comment: >
24-
**Outdated Create Version**: Since you are using an outdated Create version, please update to the latest version as it may resolve your issue. If this issue persists after updating Create, feel free to open a new issue. Thanks!
20+
issues:
21+
close: true
22+
close-reason: 'not planned'
23+
comment: >
24+
**Outdated Create Version**: Since you are using an outdated Create version, please update to the latest version as it may resolve your issue. If this issue persists after updating Create, feel free to open a new issue. Thanks!
2525
2626
'env: pojav':
27-
issues:
28-
close: true
29-
close-reason: 'not planned'
30-
comment: >
31-
**Pojav**: Create does not support Pojav or other mobile launchers due to rendering limitations. If you encounter this issue on a PC, feel free to open a new issue. Thanks!
27+
issues:
28+
close: true
29+
close-reason: 'not planned'
30+
comment: >
31+
**Pojav**: Create does not support Pojav or other mobile launchers due to rendering limitations. If you encounter this issue on a PC, feel free to open a new issue. Thanks!
3232
3333
'env: unsupported minecraft version':
34-
issues:
35-
close: true
36-
close-reason: 'not planned'
37-
comment: >
38-
**Unsupported Minecraft Version**: Unsupported Minecraft versions no longer receive Create updates. Please check the [supported Minecraft versions](https://github.com/Creators-of-Create/Create/wiki/dev.status). If you encounter this issue on a supported Minecraft version, feel free to open a new issue. Thanks!
34+
issues:
35+
close: true
36+
close-reason: 'not planned'
37+
comment: >
38+
**Unsupported Minecraft Version**: Unsupported Minecraft versions no longer receive Create updates. Please check the [supported Minecraft versions](https://github.com/Creators-of-Create/Create/wiki/dev.status). If you encounter this issue on a supported Minecraft version, feel free to open a new issue. Thanks!
3939
4040
# ----------------------------------- PULL REQUESTS ----------------------------------- #
4141

4242
'pr status: conflicts':
43-
prs:
44-
comment: >
45-
@{issue-author}, this pull request has merge conflicts with the target branch. Please merge the latest changes and leave a message here so we can continue with the process of reviewing and merging this pull request. Thanks!
43+
prs:
44+
comment: >
45+
@{issue-author}, this pull request has merge conflicts with the target branch. Please merge the latest changes and leave a message here so we can continue with the process of reviewing and merging this pull request. Thanks!
4646
4747
'pr status: waiting for author':
48-
prs:
49-
comment: >
50-
@{issue-author}, a developer has left a review and requested changes. Please make the requested changes or further discuss them with the developer so this pull request can be merged. Thanks!
48+
prs:
49+
comment: >
50+
@{issue-author}, a developer has left a review and requested changes. Please make the requested changes or further discuss them with the developer so this pull request can be merged. Thanks!
5151
5252
'pr status: wrong target':
53-
prs:
54-
comment: >
55-
@{issue-author}, this pull request is targeting the wrong branch. Pull requests should target the branch corresponding to the earliest supported Minecraft version unless the changes are specific to code that only exists for a newer Minecraft version. Please change the target branch, resolve any merge conflicts, and leave a message here so we can continue with the process of reviewing and merging this pull request. Thanks!
53+
prs:
54+
comment: >
55+
@{issue-author}, this pull request is targeting the wrong branch. Pull requests should target the branch corresponding to the earliest supported Minecraft version unless the changes are specific to code that only exists for a newer Minecraft version. Please change the target branch, resolve any merge conflicts, and leave a message here so we can continue with the process of reviewing and merging this pull request. Thanks!

Diff for: .github/workflows/gametest.yml

-23
This file was deleted.

Diff for: .github/workflows/label-actions.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: "Label Actions"
1+
name: Label Actions
22
on:
3-
issues:
4-
types: [labeled, unlabeled]
5-
pull_request_target:
6-
types: [labeled, unlabeled]
3+
issues:
4+
types: [ labeled, unlabeled ]
5+
pull_request_target:
6+
types: [ labeled, unlabeled ]
77

88
permissions:
9-
contents: read
10-
issues: write
11-
pull-requests: write
12-
discussions: write
9+
contents: read
10+
issues: write
11+
pull-requests: write
12+
discussions: write
1313

1414
jobs:
15-
action:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: dessant/label-actions@102faf474a544be75fbaf4df54e73d3c515a0e65 # Depend on an exact commit
19-
with:
20-
github-token: ${{ secrets.GITHUB_TOKEN }}
21-
config-path: '.github/config/label-actions.yml'
15+
action:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: dessant/label-actions@102faf474a544be75fbaf4df54e73d3c515a0e65 # Depend on an exact commit
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
config-path: '.github/config/label-actions.yml'

Diff for: .github/workflows/localization.yml

+25-41
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,32 @@
11
# This workflow will run Crowdin Action that will upload new texts to Crowdin, download the newest translations and create a PR
22
# For more information see: https://github.com/crowdin/github-action
3-
43
name: Crowdin Action
5-
6-
# Controls when the action will run.
74
on: workflow_dispatch
8-
# Only run when started manually
9-
10-
#:
11-
# inputs:
12-
# uploadTranslations:
13-
# description: "Set to true to upload (changed) translations to Crowdin"
14-
# type: boolean
15-
# required: true
16-
# default: false
17-
18-
#schedule:
19-
#- cron: '0 */6 * * *' # Every 6 hours - https://crontab.guru/#0_*/6_*_*_*
205

216
jobs:
22-
synchronize-with-crowdin:
23-
runs-on: ubuntu-latest
24-
25-
steps:
26-
- name: Checkout
27-
uses: actions/checkout@v2
7+
synchronize-with-crowdin:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
2812

29-
- name: crowdin action
30-
uses: crowdin/[email protected]
31-
with:
32-
# Upload sources to Crowdin
33-
upload_sources: true
34-
# Upload translations to Crowdin, only use true at initial run
35-
upload_translations: false
36-
# Make pull request of Crowdin translations
37-
download_translations: true
38-
# To download translations to the specified version branch
39-
localization_branch_name: l10n_crowdin_translations
40-
# Create pull request after pushing to branch
41-
create_pull_request: true
42-
pull_request_title: 'New Crowdin translations'
43-
pull_request_body: 'New Crowdin pull request with translations'
44-
pull_request_base_branch_name: 'mc1.20.1/dev'
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
47-
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
48-
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
13+
- name: crowdin action
14+
uses: crowdin/[email protected]
15+
with:
16+
# Upload sources to Crowdin
17+
upload_sources: true
18+
# Upload translations to Crowdin, only use true at initial run
19+
upload_translations: false
20+
# Make pull request of Crowdin translations
21+
download_translations: true
22+
# To download translations to the specified version branch
23+
localization_branch_name: l10n_crowdin_translations
24+
# Create pull request after pushing to branch
25+
create_pull_request: true
26+
pull_request_title: 'New Crowdin translations'
27+
pull_request_body: 'New Crowdin pull request with translations'
28+
pull_request_base_branch_name: 'mc1.20.1/dev'
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
31+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
32+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

Diff for: .github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Release
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Repository
10+
uses: actions/checkout@v4
11+
12+
- name: Setup Java
13+
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> "$GITHUB_ENV"
14+
15+
- name: Setup Gradle
16+
uses: gradle/actions/setup-gradle@v4
17+
with:
18+
cache-disabled: true
19+
20+
- name: Validate Gradle Wrapper Integrity
21+
uses: gradle/wrapper-validation-action@v2
22+
23+
- name: Build & Publish
24+
env:
25+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
26+
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
27+
run: ./gradlew build publish publishMods

0 commit comments

Comments
 (0)