Skip to content

Commit 2e71b77

Browse files
committed
Add manual announcement workflow
1 parent b253454 commit 2e71b77

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Announce Latest Nightly Build to Discord
2+
env:
3+
GH_PKG_URL: "https://maven.pkg.github.com/${{ github.repository }}"
4+
5+
on:
6+
workflow_dispatch:
7+
8+
jobs:
9+
get-package-info:
10+
name: Latest Package Info
11+
runs-on: ubuntu-22.04
12+
outputs:
13+
version: ${{ steps.download-info.outputs.version }}
14+
steps:
15+
- name: Download Package Info
16+
id: download-info
17+
uses: compactmods/[email protected]
18+
env:
19+
GQL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
owner: compactmods
22+
repo: compactmachines
23+
group: dev.compactmods.compactmachines.compactmachines-forge
24+
filter: "^compactmachines-forge-(?:[\\d\\.]+)-nightly.jar$"
25+
outputFile: compactmachines-nightly.json
26+
27+
- name: Debug output
28+
run: |
29+
echo "Version: ${{ steps.download-info.outputs.version }}"
30+
cat compactmachines-nightly.json
31+
32+
announce:
33+
name: Discord Announcement
34+
uses: ./.github/workflows/_announce-latest-nightly.yml
35+
secrets: inherit

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ archivesBaseName = mod_id
2222
group = "dev.compactmods.compactmachines"
2323
version = envVersion
2424

25+
tasks.register("fgInitCM") {
26+
doLast {
27+
println("ForgeGradle+CM initialized")
28+
}
29+
}
30+
2531
tasks.register("mcVersion") {
2632
doFirst {
2733
println("version=$minecraft_version")

0 commit comments

Comments
 (0)