Skip to content

Commit 1dea930

Browse files
committed
Updated Workflows
1 parent e03076f commit 1dea930

3 files changed

Lines changed: 23 additions & 33 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build MangoBotPlugin
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: "MangoBotPlugin"
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
@@ -126,7 +126,7 @@ publishing {
126126
url = "https://maven.minecraftforge.net/"
127127

128128
credentials {
129-
username = System.getenv("MAVEN_USERNAME")
129+
username = System.getenv("MAVEN_USER")
130130
password = System.getenv("MAVEN_PASSWORD")
131131
}
132132
}

0 commit comments

Comments
 (0)