aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.yml29
-rw-r--r--.github/ISSUE_TEMPLATE/config.yml9
-rw-r--r--.github/ISSUE_TEMPLATE/feature.yml31
-rw-r--r--.github/composite/gradle/action.yml8
-rw-r--r--.github/workflows/build.yml49
-rw-r--r--.github/workflows/gradle-wrapper-validation.yml4
-rw-r--r--.github/workflows/meta-checks.yml10
-rw-r--r--.github/workflows/publish-github-to-modrinth.yml1
-rw-r--r--.github/workflows/publish-website.yml8
9 files changed, 130 insertions, 19 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 0000000..dfc9c09
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,29 @@
+# SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
+#
+# SPDX-License-Identifier: CC0-1.0
+
+name: Mod Bug Report
+description: Report a bug or crash in Firmament
+labels:
+ - bug
+body:
+ - type: input
+ id: version
+ attributes:
+ label: Firmament Version
+ description: Which version of Firmament are you using. Please provide the full version name (found in the file name, or the mod list). Please **don't** say latest.
+ validations:
+ required: true
+ - type: textarea
+ id: description
+ attributes:
+ label: Bug Description
+ description: Please describe the bug you encountered and what you did before you encountered it.
+ validations:
+ required: true
+ - type: textarea
+ attributes:
+ label: Minecraft Log
+ description: Please provide the complete Minecraft Log. Please do not truncate your log, or extract only parts. Earlier parts of the log can contain important information.
+ render: plain text
+ placeholder: If you are worried about your log containing private information, you can use an external uploader like https://mclo.gs/ to strip all personal information, and paste the link in here instead.
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..a3a11ba
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,9 @@
+# SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
+#
+# SPDX-License-Identifier: CC0-1.0
+
+blank_issues_enabled: true
+contact_links:
+ - name: Discord Server
+ url: https://discord.gg/64pFP94AWA
+ about: For non bug support, check out the Discord.
diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml
new file mode 100644
index 0000000..29fa766
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature.yml
@@ -0,0 +1,31 @@
+# SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
+#
+# SPDX-License-Identifier: CC0-1.0
+
+name: Feature Request
+description: Request a new feature or for a feature to be expanded.
+labels:
+ - enhancement
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Thank you for expressing your interest in a new Firmament feature.
+ Please keep in mind that not every feature is a good fit for Firmament,
+ *especially* if there is already another mod for Firmaments versions
+ which covers that feature very well. It doesn't hurt to ask, but please
+ understand that even features I want to implement, might take some time
+ to be fully realized.
+
+ Before creating a feature request, please check if the feature complies
+ with [HyPixel rules](https://hypixel.net/skyblock-rules).
+ - type: textarea
+ attributes:
+ label: Describe the feature
+ description: Please describe the feature you are looking for.
+ validations:
+ required: true
+ - type: input
+ attributes:
+ label: Other mods
+ description: Do you know of other mods that have this feature already? If so, please list them here.
diff --git a/.github/composite/gradle/action.yml b/.github/composite/gradle/action.yml
index 5f7a260..003fcd0 100644
--- a/.github/composite/gradle/action.yml
+++ b/.github/composite/gradle/action.yml
@@ -6,21 +6,23 @@ name: "Run Gradle on a filter=tree:0 checkout"
runs:
using: composite
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
name: Checkout repository
with:
fetch-tags: true
fetch-depth: 0
filter: 'tree:0'
- name: Set up JDK 21
- uses: actions/setup-java@v4
+ uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
- name: Set up gradle cache
- uses: gradle/actions/setup-gradle@v3
+ uses: gradle/actions/setup-gradle@v4
with:
+ cache-read-only: false
add-job-summary-as-pr-comment: 'on-failure'
+ dependency-graph: 'generate-and-submit'
- name: Prepare unpacked Jars
run: |
./gradlew unpackAllJars
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b1daf9d..c40a038 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -15,7 +15,7 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
name: Checkout repository
with:
fetch-tags: true
@@ -24,16 +24,19 @@ jobs:
- uses: ./.github/composite/gradle
- name: Build with gradle
run: |
- ./gradlew remapJar --scan
+ ./gradlew assemble --scan
- name: Move build artifact around and print check sum
run: |
- rm -f build/libs/*sources*.jar
+ rm -f build/libs/*sources*.jar build/libs/*-api.jar
sha256sum build/libs/*.jar
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: built-mod-jar
path: build/libs/Firmament-*.jar
+ exclude: |
+ build/libs/*-sources.jar
+ build/libs/*-api.jar
test:
name: Test
@@ -55,10 +58,10 @@ jobs:
name: Upload
runs-on: ubuntu-latest
needs: build
- if: ${{ 'push' == github.event_name && 'master' == github.ref_name && '637563904' == github.repository_id }}
+ if: ${{ 'push' == github.event_name && ('master' == github.ref_name || startsWith(github.ref_name, 'mc-')) && '637563904' == github.repository_id }}
steps:
- name: Download generated artifact
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v5
with:
name: built-mod-jar
- name: Upload to discord
@@ -67,3 +70,39 @@ jobs:
curl "$WEBHOOK_URL" -X POST -H "Content-type: multipart/form-data" --form "files[0]=@$(echo *.jar)"
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
+
+ prepare-release:
+ name: Prepare a release
+ runs-on: ubuntu-22.04
+ needs: build
+ permissions:
+ contents: write
+ if: ${{ 'push' == github.event_name && startsWith(github.ref, 'refs/tags/') }}
+ steps:
+ - uses: actions/checkout@v5
+ name: Checkout repository
+ with:
+ fetch-tags: true
+ fetch-depth: 0
+ filter: 'tree:0'
+
+ - name: Download generated artifact
+ uses: actions/download-artifact@v5
+ with:
+ name: built-mod-jar
+ - name: Generate changelog
+ run: ./docs/generate-changelog.sh > changelog.md
+
+ - name: Upload release
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ gh release create --draft -t "Firmament ${GITHUB_REF#refs/tags/}" "${GITHUB_REF#refs/tags/}" -F "changelog.md" "*.jar"
+
+ - name: Notify discord
+ env:
+ ACTOR: ${{ github.actor }}
+ WEBHOOK: ${{ secrets.CONFIDENTIAL_WEBHOOK }}
+ REPO: ${{ github.repository }}
+ run: |
+ curl -X POST "$WEBHOOK" --data "$(jq -n --arg r "$REPO" --arg v "${GITHUB_REF#refs/tags/}" --arg a "$ACTOR" '{"content": ("Created release preview, ready for publishing." + $v+"\n\nSee the draft at https://github.com/"+$r+"/releases/"), "username": $a, "avatar_url": ("https://github.com/" + $a + ".png")}')" -H 'content-type: application/json'
diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml
index 844c64a..45234cb 100644
--- a/.github/workflows/gradle-wrapper-validation.yml
+++ b/.github/workflows/gradle-wrapper-validation.yml
@@ -10,7 +10,7 @@ jobs:
name: "Validation"
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
name: Checkout repository
- - uses: gradle/actions/wrapper-validation@v3
+ - uses: gradle/actions/wrapper-validation@v4
name: Validate wrappers
diff --git a/.github/workflows/meta-checks.yml b/.github/workflows/meta-checks.yml
index 8a15be2..ac71229 100644
--- a/.github/workflows/meta-checks.yml
+++ b/.github/workflows/meta-checks.yml
@@ -12,7 +12,7 @@ jobs:
name: Run REUSE Compliance check
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
name: Checkout Repository
- name: REUSE Compliance Check
uses: fsfe/reuse-action@140e81ab76b30d9c5641b7b11e28222b3a11f8f9
@@ -23,8 +23,8 @@ jobs:
outputs:
hooks: ${{ steps.generate-matrix.outputs.hooks }}
steps:
- - uses: actions/checkout@v4
- name: Checkout Repository+
+ - uses: actions/checkout@v5
+ name: Checkout Repository
- name: Generate matrix
id: generate-matrix
run: |
@@ -41,9 +41,9 @@ jobs:
hook: ${{ fromJSON(needs.pre-commit-generate.outputs.hooks) }}
name: 'PRE-Commit: ${{ matrix.hook }}'
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
name: Checkout Repository
- - uses: actions/setup-python@v4
+ - uses: actions/setup-python@v5
name: Setup Python
- name: Check ${{ matrix.hook }}
uses: pre-commit/action@v3.0.1
diff --git a/.github/workflows/publish-github-to-modrinth.yml b/.github/workflows/publish-github-to-modrinth.yml
index 18ecf4a..7b966ab 100644
--- a/.github/workflows/publish-github-to-modrinth.yml
+++ b/.github/workflows/publish-github-to-modrinth.yml
@@ -19,6 +19,7 @@ jobs:
steps:
- run: |
gh release download "$TAG" -p '*.jar' --repo "$REPO"
+ rm -f *-sources.jar *-api.jar *-api-sources.jar
env:
TAG: ${{ github.event.release.tag_name }}
REPO: ${{ github.repository }}
diff --git a/.github/workflows/publish-website.yml b/.github/workflows/publish-website.yml
index f492738..191de25 100644
--- a/.github/workflows/publish-website.yml
+++ b/.github/workflows/publish-website.yml
@@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
name: Astro Build
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
name: Checkout Code
- name: Setup node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v5
with:
node-version: 23
- name: Setup PNPM
@@ -33,7 +33,7 @@ jobs:
name: Deploy Website
runs-on: ubuntu-latest
needs: build-website
- if: ${{ 'push' == github.event_name && 'master' == github.ref_name && '637563904' == github.repository_id }}
+ if: ${{ 'push' == github.event_name && github.ref_name == github.event.repository.default_branch && '637563904' == github.repository_id }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
@@ -41,7 +41,7 @@ jobs:
pages: write
id-token: write
steps:
- - uses: actions/download-artifact@v4
+ - uses: actions/download-artifact@v5
name: Download web artifact
- name: Deploy github pages
id: deployment