Skip to content

Commit ac067d3

Browse files
ci: Add packaging and release workflows, update issue templates (#31)
* Added packwiz and script * Added issue templates * Run refresh command * FIx templates * Fix template * Fix options for dropdown * Added validations * Remove unnecessary textarea * update issue temple * add package workflow * update workflow * test workflow * trigger * use deploy key * update release tag * trigger * use action bot * trigger * trigger * update workflow * update workflow * test release * complete * revert options.txt * change labels for issue template --------- Co-authored-by: Magic_Sweepy <Magic_Sweepy@proton.me>
1 parent 6e21b2b commit ac067d3

19 files changed

Lines changed: 793 additions & 3 deletions
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: 🐛 Bug Report
2+
description: Report a bug or issue
3+
title: "[Bug] "
4+
labels: ["type: bug"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thank you for reporting an issue. Please fill out the information below so we can better understand and resolve it.
12+
13+
- type: checkboxes
14+
id: checklist
15+
attributes:
16+
label: Checklist
17+
description: Please confirm the following before submitting
18+
options:
19+
- label: I have searched the existing issues and confirmed this is not a duplicate report
20+
required: true
21+
- label: I am using the latest version of the modpack
22+
required: true
23+
24+
- type: input
25+
id: pack-version
26+
attributes:
27+
label: Modpack Version
28+
description: The version of the modpack you are using
29+
placeholder: "e.g. 0.1.0"
30+
validations:
31+
required: true
32+
33+
- type: dropdown
34+
id: environment
35+
attributes:
36+
label: Environment
37+
description: Where does the issue occur?
38+
options:
39+
- Singleplayer
40+
- Multiplayer (LAN)
41+
- Multiplayer (Dedicated Server)
42+
validations:
43+
required: true
44+
45+
- type: textarea
46+
id: reproduction-steps
47+
attributes:
48+
label: Steps to Reproduce
49+
description: Describe how to reproduce the issue in detail
50+
placeholder: |
51+
1. Launch the game
52+
2. Click '...'
53+
3. Do '...'
54+
4. See the error
55+
validations:
56+
required: true
57+
58+
- type: textarea
59+
id: expected-behavior
60+
attributes:
61+
label: Expected Behavior
62+
description: Describe what you expected to happen. You may attach screenshots or videos to help explain the issue.
63+
placeholder: What should have happened...
64+
validations:
65+
required: true
66+
67+
- type: textarea
68+
id: actual-behavior
69+
attributes:
70+
label: Actual Behavior
71+
description: Describe what actually happened. You may attach screenshots or videos to help explain the issue.
72+
placeholder: What actually happened...
73+
validations:
74+
required: true
75+
76+
- type: textarea
77+
id: logs
78+
attributes:
79+
label: Logs / Crash Report
80+
description: Please provide any relevant crash reports or log output, if available
81+
render: shell
82+
placeholder: |
83+
Please paste any relevant log output here, especially:
84+
- latest.log
85+
- crash reports from crash-reports
86+
- debug.log (if present)
87+
88+
- type: textarea
89+
id: additional-notes
90+
attributes:
91+
label: Additional Notes / Workarounds
92+
description: Add any other useful context, including temporary workarounds if you found any
93+
placeholder: Any extra context or workaround details...
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: ✨ Feature Request
2+
description: Suggest a new feature for the modpack
3+
title: "[New Feature] "
4+
labels: ["type: new feature"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thank you for suggesting a new feature. Please fill out the information below so we can understand what you would like to add.
12+
13+
- type: checkboxes
14+
id: checklist
15+
attributes:
16+
label: Checklist
17+
description: Please confirm the following before submitting
18+
options:
19+
- label: I have searched the existing issues and confirmed this feature has not already been requested
20+
required: true
21+
22+
- type: textarea
23+
id: feature-description
24+
attributes:
25+
label: Feature Description
26+
description: Describe the feature you would like to add in detail
27+
placeholder: |
28+
Feature overview:
29+
- What the feature does
30+
- Main use cases
31+
validations:
32+
required: true
33+
34+
- type: textarea
35+
id: implementation-suggestions
36+
attributes:
37+
label: Implementation Suggestions
38+
description: Do you have any suggestions for how this feature could be implemented?
39+
placeholder: |
40+
Implementation ideas:
41+
- Possible technical approaches
42+
- Recommended tools or libraries
43+
- A phased implementation plan
44+
- Technical challenges to consider
45+
46+
- type: textarea
47+
id: additional-info
48+
attributes:
49+
label: Additional Information
50+
description: Any other information that would help us understand this feature request
51+
placeholder: |
52+
Additional details:
53+
- Relevant screenshots or examples
54+
- Reference materials or links
55+
- Related community discussions
56+
- Similar feature implementations
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: ⚙️ Adjustment Request
2+
description: Suggest a change to an existing feature, config, or behavior
3+
title: "[Adjustment] "
4+
labels: ["type: affects balance"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thank you for suggesting an adjustment. Please fill out the information below so we can understand what needs to change.
12+
13+
- type: checkboxes
14+
id: checklist
15+
attributes:
16+
label: Checklist
17+
description: Please confirm the following before submitting
18+
options:
19+
- label: I have searched the existing issues and confirmed this adjustment has not already been requested
20+
required: true
21+
22+
- type: textarea
23+
id: proposed_adjustment
24+
attributes:
25+
label: Proposed Adjustment
26+
description: Describe the adjustment you would like to see
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
id: adjustment-reason
32+
attributes:
33+
label: Reason for Adjustment
34+
description: Why is this adjustment needed?
35+
placeholder: |
36+
Why this adjustment is needed:
37+
- Problems caused by the current setup
38+
- Impact on gameplay
39+
- How well it fits the modpack's theme
40+
- Issues raised by user feedback
41+
- Balance considerations
42+
validations:
43+
required: true
44+
45+
- type: textarea
46+
id: impact-scope
47+
attributes:
48+
label: Impact Scope
49+
description: What parts of the game would this adjustment affect?
50+
validations:
51+
required: true
52+
53+
- type: textarea
54+
id: additional-info
55+
attributes:
56+
label: Additional Information
57+
description: Any other information that would help us understand and implement this adjustment
58+
placeholder: |
59+
- Relevant community discussions
60+
- How other modpacks handle this
61+
- Special considerations
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: 📦 Mod Request
2+
description: Suggest a mod to add to the modpack
3+
title: "[Mod Request] "
4+
labels: ["type: mod change"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thank you for the mod suggestion. Please fill out the information below to help us evaluate whether this mod should be added to the modpack.
12+
13+
- type: checkboxes
14+
id: checklist
15+
attributes:
16+
label: Checklist
17+
description: Please confirm the following before submitting
18+
options:
19+
- label: I have searched the existing issues and confirmed this mod has not already been requested
20+
required: true
21+
- label: I have confirmed that this mod supports the Minecraft version and mod loader used by the modpack
22+
required: true
23+
24+
- type: input
25+
id: mod-name
26+
attributes:
27+
label: Mod Name
28+
description: The name of the mod you would like to add
29+
placeholder: "e.g. JourneyMap"
30+
validations:
31+
required: true
32+
33+
- type: input
34+
id: mod-link
35+
attributes:
36+
label: Mod Link
37+
description: The official link for this mod
38+
placeholder: "https://www.curseforge.com/minecraft/mc-mods/..."
39+
validations:
40+
required: true
41+
42+
- type: textarea
43+
id: mod-reason
44+
attributes:
45+
label: Why Add This Mod?
46+
description: What does this mod do, and why would it be a good fit for the modpack?
47+
placeholder: This mod would be a good fit for the modpack because...
48+
validations:
49+
required: true
50+
51+
- type: textarea
52+
id: testing-notes
53+
attributes:
54+
label: Testing Notes
55+
description: Have you tested this mod already? If so, what did you find?
56+
placeholder: |
57+
Test environment:
58+
Test date:
59+
Issues found:
60+
Performance impact:
61+
Interactions with other mods:
62+
63+
- type: textarea
64+
id: configuration-suggestions
65+
attributes:
66+
label: Configuration Suggestions
67+
description: If this mod is added, how would you recommend configuring it for the modpack?
68+
placeholder: |
69+
Suggested configuration adjustments:
70+
- Disable certain features to avoid conflicts
71+
- Adjust spawn rates
72+
- Modify recipes for balance
73+
74+
- type: textarea
75+
id: additional-info
76+
attributes:
77+
label: Additional Information
78+
description: Any other information that would help us evaluate this mod
79+
placeholder: |
80+
- Update frequency
81+
- Community feedback
82+
- Known issues
83+
- Special considerations

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💬 Discussions & Q&A
4+
url: https://github.com/GregTechLite/GregTech-Lite-Modpack/discussions
5+
about: Use Discussions for questions, suggestions, and community chat.
6+
- name: 📖 Installation Guide
7+
url: https://github.com/GregTechLite/GregTech-Lite-Modpack/blob/main/README.md
8+
about: Read the installation and usage guide.

.github/scripts/client.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
artifact_base="${1:?missing artifact base}"
6+
7+
mkdir -p dist
8+
9+
curseforge_zip="dist/${artifact_base}-curseforge.zip"
10+
11+
packwiz curseforge export -o "$curseforge_zip"
12+
13+
echo "curseforge_zip=$curseforge_zip" >> "$GITHUB_OUTPUT"

.github/scripts/manifest.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
manifest_dir="dist/manifest"
6+
7+
mkdir -p "$manifest_dir"
8+
cp pack.toml index.toml "$manifest_dir/"
9+
10+
while IFS= read -r manifest_file; do
11+
[ -n "$manifest_file" ] || continue
12+
mkdir -p "${manifest_dir}/$(dirname "$manifest_file")"
13+
cp "$manifest_file" "${manifest_dir}/$manifest_file"
14+
done < <(tomlq -r '.files[].file' < index.toml)

.github/scripts/meta.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
name="$(tomlq -r '.name' < pack.toml)"
6+
slug="$(printf '%s' "$name" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/-/g; s/^-+|-+$//g')"
7+
version="$(tomlq -r '.version' < pack.toml)"
8+
minecraft_version="$(tomlq -r '.versions.minecraft' < pack.toml)"
9+
forge_version="$(tomlq -r '.versions.forge' < pack.toml)"
10+
short_sha="${GITHUB_SHA::7}"
11+
12+
{
13+
echo "NAME=$name"
14+
echo "SLUG=$slug"
15+
echo "VERSION=$version"
16+
echo "MINECRAFT_VERSION=$minecraft_version"
17+
echo "FORGE_VERSION=$forge_version"
18+
echo "SHORT_SHA"="$short_sha"
19+
} >> "$GITHUB_ENV"
20+

0 commit comments

Comments
 (0)