Skip to content

Commit 4b72a74

Browse files
committed
Updated Workflows
1 parent a07b081 commit 4b72a74

File tree

4 files changed

+26
-34
lines changed

4 files changed

+26
-34
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build MangoBotWebsite
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
paths-ignore:
6+
- 'README.md'
7+
- 'settings.gradle'
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
uses: MinecraftForge/SharedActions/.github/workflows/gradle.yml@v0
15+
with:
16+
java: 22
17+
gradle_tasks: :runDatagen :publish
18+
artifact_name: "MangoBotWebsite"
19+
secrets:
20+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
21+
MAVEN_USER: ${{ secrets.USERNAME }} # Reference the secret
22+
MAVEN_PASSWORD: ${{ secrets.PASSWORD }} # Reference the secret

.github/workflows/gradle.yml

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

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ publishing {
133133
url = "https://maven.minecraftforge.net/"
134134

135135
credentials {
136-
username = System.getenv("MAVEN_USERNAME")
136+
username = System.getenv("MAVEN_USER")
137137
password = System.getenv("MAVEN_PASSWORD")
138138
}
139139
}

src/main/java/org/mangorage/mangobotsite/website/servlet/TricksServlet.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
117117
}
118118

119119
if (guildId != null && trickId == null) {
120-
b.put("tricks", command.getTricksForGuild(Long.parseLong(guildId)));
120+
b.put("tricks",
121+
command.getTricksForGuild(Long.parseLong(guildId))
122+
);
121123
}
122124

123125
if (trick != null) {

0 commit comments

Comments
 (0)