Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit cddc211

Browse files
Merge pull request #3 from OffsetMods538/v3
V3
2 parents 7a26458 + ccec39e commit cddc211

307 files changed

Lines changed: 3387 additions & 2706 deletions

File tree

Some content is hidden

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

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
# Check for updates to GitHub Actions every week
10+
interval: "weekly"
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build artifacts
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
submodules: true
17+
18+
- name: Set up JDK 21
19+
uses: actions/setup-java@v5
20+
with:
21+
java-version: '21'
22+
distribution: 'temurin'
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v5
26+
with:
27+
cache-read-only: false
28+
29+
- name: Store short commit hash
30+
run: echo "short_commit_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
31+
32+
- name: Build with Gradle
33+
run: ./gradlew build
34+
env:
35+
PRESERVE_PRERELEASE_VERSION: true
36+
DISABLE_PROPERTIES_UPDATE: true
37+
DISABLE_MUSIC: true
38+
VERSION_SUFFIX: ${{ env.short_commit_hash }}
39+
40+
- name: Publish to Maven
41+
run: ./gradlew publishMavenPublicationToOffsetMonkey538Repository
42+
env:
43+
PRESERVE_PRERELEASE_VERSION: true
44+
DISABLE_PROPERTIES_UPDATE: true
45+
DISABLE_MUSIC: true
46+
VERSION_SUFFIX: ${{ env.short_commit_hash }}
47+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
48+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
49+
50+
- name: Upload build artifacts
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: Build Artifacts
54+
path: ./loader/*/*/build/libs/

.github/workflows/publish.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Publish the mod
22

33
on:
44
release:
5-
types:
6-
- published
5+
types: [published]
76

87

98
jobs:
@@ -15,44 +14,51 @@ jobs:
1514

1615
steps:
1716
- uses: actions/checkout@v4
17+
with:
18+
submodules: true
1819

1920
- name: Set up JDK 21
20-
uses: actions/setup-java@v4
21+
uses: actions/setup-java@v5
2122
with:
2223
java-version: '21'
2324
distribution: 'temurin'
2425

2526
- name: Setup Gradle
26-
uses: gradle/actions/setup-gradle@v4
27+
uses: gradle/actions/setup-gradle@v5
2728
with:
2829
cache-read-only: false
2930

3031
- name: Build with Gradle
3132
run: ./gradlew build
3233
env:
34+
IS_RELEASE: true
3335
DISABLE_PROPERTIES_UPDATE: true
36+
DISABLE_MUSIC: true
37+
VERSION_SUFFIX: ""
3438

3539
- name: Upload to Modrinth
3640
run: ./gradlew modrinth
3741
env:
42+
IS_RELEASE: true
3843
DISABLE_PROPERTIES_UPDATE: true
44+
DISABLE_MUSIC: true
45+
VERSION_SUFFIX: ""
3946
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
4047
VERSION_NAME: ${{ github.event.release.name }}
48+
VERSION_IS_PRERELEASE: ${{ github.event.release.prerelease }}
49+
VERSION_CHANGELOG: ${{ github.event.release.body }}
4150

4251
- name: Publish to Maven
4352
run: ./gradlew publishMavenPublicationToOffsetMonkey538Repository
4453
env:
54+
IS_RELEASE: true
55+
DISABLE_PROPERTIES_UPDATE: true
56+
DISABLE_MUSIC: true
57+
VERSION_SUFFIX: ""
4558
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
4659
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
4760

48-
- name: Delete common libs
49-
run: rm -r ./common/build/libs
50-
5161
- name: Upload to GitHub
52-
uses: svenstaro/upload-release-action@v2
62+
uses: softprops/action-gh-release@v2
5363
with:
54-
repo_token: ${{ secrets.GITHUB_TOKEN }}
55-
file: ./*/build/libs/*.jar
56-
tag: ${{ github.ref }}
57-
overwrite: true
58-
file_glob: true
64+
files: ./loader/*/*/build/libs/*.jar

.github/workflows/upload-artifacts.yml

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

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "buildSrc"]
2+
path = buildSrc
3+
url = https://github.com/OffsetMods538/multiversion-buildscripts

1.20.1/gradle.properties

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

1.20.1/src/client/java/top/offsetmonkey538/monkeylib538/MonkeyLib538Client.java

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

1.20.1/src/client/resources/monkeylib538.client.mixins.json

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

1.20.1/src/main/java/top/offsetmonkey538/monkeylib538/MonkeyLib538.java

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

1.20.1/src/main/java/top/offsetmonkey538/monkeylib538/utils/EnchantmentUtilsImpl.java

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

0 commit comments

Comments
 (0)