Skip to content

Commit 58aadca

Browse files
committed
build: make publish workflows reusable from this repo
1 parent 36ae75f commit 58aadca

File tree

4 files changed

+111
-0
lines changed

4 files changed

+111
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CurseForge Publish
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release-type:
7+
description: "The release type (release|beta|alpha)"
8+
type: choice
9+
options:
10+
- release
11+
- beta
12+
- alpha
13+
default: "release"
14+
game-endpoint:
15+
description: "The subdomain of curseforge.com"
16+
type: string
17+
default: "authors"
18+
game-versions:
19+
description: "Game version IDs (comma-separated)"
20+
type: string
21+
default: ""
22+
changelog-type:
23+
description: "The type of changelog"
24+
type: choice
25+
options:
26+
- markdown
27+
- text
28+
- html
29+
default: "markdown"
30+
relations:
31+
description: "Project relations (format: projectslug:relationType, comma-separated)"
32+
type: string
33+
default: ""
34+
35+
permissions:
36+
contents: read
37+
38+
jobs:
39+
curseforge-publish:
40+
uses: nitrado/hytale-plugin-workflows/.github/workflows/curseforge-publish.yml@v1
41+
secrets: inherit
42+
with:
43+
release-type: ${{ inputs.release-type }}
44+
game-endpoint: ${{ inputs.game-endpoint }}
45+
game-versions: ${{ inputs.game-versions }}
46+
changelog-type: ${{ inputs.changelog-type }}
47+
relations: ${{ inputs.relations }}
48+

.github/workflows/gcs-publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: GCS Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
gcs-publish:
11+
uses: nitrado/hytale-plugin-workflows/.github/workflows/gcs-publish.yml@v1
12+
secrets: inherit
13+
14+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Maven Publish
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
java-version:
7+
description: "Java version for Maven publishing"
8+
type: string
9+
default: "25"
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
maven-publish:
16+
uses: nitrado/hytale-plugin-workflows/.github/workflows/maven-publish.yml@v1
17+
secrets: inherit
18+
with:
19+
java-version: ${{ inputs.java-version }}
20+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Modtale Publish
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
channel:
7+
description: "The Modtale channel (RELEASE|BETA|ALPHA)"
8+
type: choice
9+
options:
10+
- RELEASE
11+
- BETA
12+
- ALPHA
13+
default: "RELEASE"
14+
game-versions:
15+
description: "Hytale game versions (comma-separated)"
16+
type: string
17+
default: "1.0-SNAPSHOT"
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
modtale-publish:
24+
uses: nitrado/hytale-plugin-workflows/.github/workflows/modtale-publish.yml@v1
25+
secrets: inherit
26+
with:
27+
channel: ${{ inputs.channel }}
28+
game-versions: ${{ inputs.game-versions }}
29+

0 commit comments

Comments
 (0)