Commit 680a9e0 1 parent 75665d8 commit 680a9e0 Copy full SHA for 680a9e0
File tree 2 files changed +69
-0
lines changed
2 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ on : [workflow_dispatch]
2
+
3
+ jobs :
4
+ curseforge-release-job :
5
+ runs-on : ubuntu-latest
6
+ name : CurseForge Release
7
+ steps :
8
+ - name : checkout
9
+ uses : actions/checkout@v2
10
+ - name : Set up Java and Maven
11
+ uses : actions/setup-java@v2
12
+ with :
13
+ java-version : ' 11'
14
+ distribution : ' adopt'
15
+ cache : ' maven'
16
+ - name : Cache Local Maven Repository
17
+ uses : actions/cache@v2
18
+ with :
19
+ path : ~/.m2/repository
20
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
21
+ restore-keys : |
22
+ ${{ runner.os }}-maven-
23
+ - name : Publish Package to CurseForge
24
+ run : mvn package -P deploy-curseforge-action -D curseforge.auth-token=$TOKEN_CURSEFORGE
25
+ env :
26
+ TOKEN_CURSEFORGE : ${{ secrets.TOKEN_CURSEFORGE }}
Original file line number Diff line number Diff line change 180
180
</plugins >
181
181
</build >
182
182
</profile >
183
+ <profile >
184
+ <id >deploy-curseforge-action</id >
185
+ <properties >
186
+ <profile .id.value>deploy</profile .id.value>
187
+ <package .descriptor>${basedir} /build-resources/assembly-release.xml</package .descriptor>
188
+ <package .filter>${basedir} /build-resources/addon-release.properties</package .filter>
189
+ <package .finalName>${addon.name} </package .finalName>
190
+ <package .appendAssemblyId>false</package .appendAssemblyId>
191
+ <package .includeBaseDirectory>true</package .includeBaseDirectory>
192
+ <generate .sources.skip>true</generate .sources.skip>
193
+ </properties >
194
+ <build >
195
+ <plugins >
196
+ <plugin >
197
+ <groupId >com.ragedunicorn.tools.maven</groupId >
198
+ <artifactId >curseforge-release-maven-plugin</artifactId >
199
+ <version >1.0.1</version >
200
+ <executions >
201
+ <execution >
202
+ <id >default-cli</id >
203
+ <phase >package</phase >
204
+ <goals >
205
+ <goal >curseforge-release</goal >
206
+ </goals >
207
+ <configuration >
208
+ <game >wow</game >
209
+ <projectId >${addon.curseforge.projectid} </projectId >
210
+ <displayName >${addon.curseforge.displayName} -${addon.tag.version} -classic.zip</displayName >
211
+ <changelogFile >${basedir} /build-resources/release-notes.md</changelogFile >
212
+ <changelogType >markdown</changelogType >
213
+ <gameVersions >
214
+ <gameVersion >8668</gameVersion >
215
+ </gameVersions >
216
+ <releaseType >release</releaseType >
217
+ <file >${basedir} /target/${addon.name} .zip</file >
218
+ <token >${curseforge.auth-token} </token >
219
+ </configuration >
220
+ </execution >
221
+ </executions >
222
+ </plugin >
223
+ </plugins >
224
+ </build >
225
+ </profile >
183
226
</profiles >
184
227
185
228
<build >
You can’t perform that action at this time.
0 commit comments