Skip to content

Commit 7d1b553

Browse files
committed
Curseforge Plugin removal, favor reading properties file
1 parent 785f3df commit 7d1b553

File tree

2 files changed

+25
-38
lines changed

2 files changed

+25
-38
lines changed

.github/workflows/test-build.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
name: out
5454
path: .github/CHANGELOG.md
5555

56-
curseforge:
57-
name: Upload to CurseForge
56+
jar:
57+
name: Publish JAR
5858
runs-on: ubuntu-latest
5959
needs: [changelog]
6060
steps:
@@ -82,21 +82,34 @@ jobs:
8282
- name: Grant execute permission for gradlew
8383
run: chmod +x gradlew
8484

85-
- name: Build JAR
86-
run: ./gradlew jar
85+
- name: Build JAR with Gradle
86+
run: ./gradlew publish
8787
env:
88-
CF_TOKEN: ${{ secrets.CF_API_TOKEN }}
89-
90-
- name: Do Upload
91-
run: ./gradlew curseforge
92-
env:
93-
CF_TOKEN: ${{ secrets.CF_API_TOKEN }}
88+
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9490

9591
- name: Add Artifact
9692
uses: actions/upload-artifact@v2
9793
with:
98-
name: result
99-
path: .
94+
name: libs
95+
path: build/libs/*.jar
96+
97+
echo:
98+
name: Echo Variables
99+
runs-on: ubuntu-latest
100+
steps:
101+
- name: Checkout
102+
uses: actions/checkout@v2
103+
104+
- name: Release Type
105+
id: releasetype
106+
uses: christian-draeger/[email protected]
107+
with:
108+
path: './gradle.properties'
109+
property: 'cf_release_type'
110+
111+
- name: Echo
112+
run: echo ${{steps.releasetype.outputs.value }}
100113

101114
view:
102115
name: View Changelog Output

build.gradle

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@ buildscript {
33
maven { url = 'https://files.minecraftforge.net/maven' }
44
jcenter()
55
mavenCentral()
6-
7-
maven { url "https://plugins.gradle.org/m2/" }
86
}
97

108
dependencies {
119
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
1210
}
1311
}
1412

15-
16-
plugins {
17-
id "com.matthewprenger.cursegradle" version "1.4.0"
18-
}
19-
2013
apply plugin: 'net.minecraftforge.gradle'
2114
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
2215
apply plugin: 'eclipse'
@@ -190,25 +183,6 @@ jar.finalizedBy('reobfJar')
190183
// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
191184
//publish.dependsOn('reobfJar')
192185

193-
curseforge {
194-
apiKey = System.getenv("CF_TOKEN")
195-
project {
196-
id = cf_project
197-
releaseType = "${cf_release_type}"
198-
changelogType = "markdown"
199-
changelog = file("changelog/CHANGELOG.md")
200-
201-
mainArtifact jar
202-
}
203-
204-
options {
205-
debug = true
206-
javaVersionAutoDetect = true
207-
javaIntegration = false
208-
forgeGradleIntegration = false
209-
}
210-
}
211-
212186
publishing {
213187
publications {
214188
mavenJava(MavenPublication) {

0 commit comments

Comments
 (0)