Skip to content

Commit 4821315

Browse files
committed
workflow'in
1 parent 18e77f5 commit 4821315

File tree

5 files changed

+47
-122
lines changed

5 files changed

+47
-122
lines changed

.github/workflows/codeql.yml

-55
This file was deleted.

.github/workflows/issueLabeler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
with:
1212
configuration-path: .github/config/labels.yml
1313
enable-versioned-regex: 0
14-
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publishFabric.yml

-33
This file was deleted.

.github/workflows/publishForge.yml

-33
This file was deleted.

.github/workflows/release.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
platform:
7+
type: choice
8+
description: Platform
9+
options:
10+
- fabric
11+
- forge
12+
- both
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
env:
18+
RELEASE_BUILD: true
19+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
20+
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
21+
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
22+
23+
steps:
24+
- name: Checkout Repository
25+
uses: actions/checkout@v3
26+
27+
- name: Setup JDK 17
28+
uses: actions/setup-java@v2
29+
with:
30+
java-version: '17'
31+
distribution: temurin
32+
cache: gradle
33+
34+
- name: Validate Gradle Wrapper Integrity
35+
uses: gradle/wrapper-validation-action@v1
36+
37+
- name: Make Gradle wrapper executable
38+
run: chmod +x ./gradlew
39+
40+
- name: Build & Publish Fabric or Forge
41+
if: ${{ inputs.platform }} == "fabric" || ${{ inputs.platform }} == "forge"
42+
run: ./gradlew :${{ inputs.platform }}:build :${{ inputs.platform }}:publish :${{ inputs.platform }}:publishMods
43+
44+
- name: Build & Publish Both
45+
if: ${{ inputs.platform }} == both
46+
run: ./gradlew build :fabric:publish :fabric:publishMods

0 commit comments

Comments
 (0)