Skip to content

Commit

Permalink
Add manual announcement workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robotgryphon committed Oct 28, 2024
1 parent b253454 commit 2e71b77
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/announce-latest-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Announce Latest Nightly Build to Discord
env:
GH_PKG_URL: "https://maven.pkg.github.com/${{ github.repository }}"

on:
workflow_dispatch:

jobs:
get-package-info:
name: Latest Package Info
runs-on: ubuntu-22.04
outputs:
version: ${{ steps.download-info.outputs.version }}
steps:
- name: Download Package Info
id: download-info
uses: compactmods/[email protected]
env:
GQL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
owner: compactmods
repo: compactmachines
group: dev.compactmods.compactmachines.compactmachines-forge
filter: "^compactmachines-forge-(?:[\\d\\.]+)-nightly.jar$"
outputFile: compactmachines-nightly.json

- name: Debug output
run: |
echo "Version: ${{ steps.download-info.outputs.version }}"
cat compactmachines-nightly.json
announce:
name: Discord Announcement
uses: ./.github/workflows/_announce-latest-nightly.yml
secrets: inherit
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ archivesBaseName = mod_id
group = "dev.compactmods.compactmachines"
version = envVersion

tasks.register("fgInitCM") {
doLast {
println("ForgeGradle+CM initialized")
}
}

tasks.register("mcVersion") {
doFirst {
println("version=$minecraft_version")
Expand Down

0 comments on commit 2e71b77

Please sign in to comment.