Skip to content

Commit

Permalink
Merge branch 'master' into 1.21.3-neoforge
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Nov 29, 2024
2 parents d032048 + 77857c0 commit 9f8fb54
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 7 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
# Directory should be `/` instead of `/.github/workflows` according to the docs.
directory: "/"
schedule:
interval: "daily"
4 changes: 4 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Java CI with Gradle
run-name: |
${{ github.event_name == 'pull_request'
&& format('Test changes in PR #{0}: {1}', github.event.pull_request.number, github.event.pull_request.title)
|| format('Test changes in {0}: {1}', github.ref_name, github.event.head_commit.message) }}
on:
push:
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: Publish Release
run-name: "Publish release from ${{ github.ref_name }} branch"

permissions:
# Needed to push the tag.
contents: write

on:
workflow_dispatch:
Expand Down Expand Up @@ -31,9 +36,13 @@ jobs:
WI_BACKUPS_API_KEY: ${{ secrets.WI_BACKUPS_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}

steps:
- uses: actions/checkout@v4

- name: Checkout repository
uses: actions/checkout@v4
with:
# Include all tags in case the new tag already exists.
fetch-tags: true

- name: Set up Java 21
uses: actions/setup-java@v4
Expand All @@ -52,11 +61,11 @@ jobs:

- name: Create and push tag
run: |
MOD_VERSION=$(grep "mod_version" gradle.properties | cut -d'=' -f2 | tr -d ' ')
MOD_VERSION=$(grep "mod_version" gradle.properties | cut -d'=' -f2 | tr -d ' \r')
git config --global user.name "Wurst-Bot"
git config --global user.email "[email protected]"
git tag v$MOD_VERSION
git push origin v$MOD_VERSION
git tag "v$MOD_VERSION"
git push origin "v$MOD_VERSION"
- name: Close milestone
if: ${{ inputs.close_milestone }}
Expand All @@ -75,3 +84,5 @@ jobs:
- name: Publish to CurseForge
if: ${{ inputs.publish_curseforge }}
run: ./gradlew publishCurseforge --stacktrace

# TODO: Trigger website update
3 changes: 2 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/stale@v9
- name: Run stale bot
uses: actions/stale@v9
with:
stale-issue-message: |
This issue has been open for a while with no recent activity. If this issue is still important to you, please add a comment within the next 7 days to keep it open. Otherwise, the issue will be automatically closed to free up time for other tasks.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
id "idea"
id "net.neoforged.gradle.userdev" version "7.0.146"
id "net.neoforged.gradle.mixin" version "7.0.146"
id "me.modmuss50.mod-publish-plugin" version "0.5.2"
id "me.modmuss50.mod-publish-plugin" version "0.8.1"
id "com.diffplug.spotless" version "6.25.0"
}

Expand Down

0 comments on commit 9f8fb54

Please sign in to comment.