Skip to content

Commit

Permalink
Merge pull request #632 from Team-EnderIO/experiment/kotlin-gradle
Browse files Browse the repository at this point in the history
Experiment: Convert gradle to Kotlin
  • Loading branch information
Rover656 authored Mar 11, 2024
2 parents b8b1e30 + 474a950 commit 9586013
Show file tree
Hide file tree
Showing 8 changed files with 605 additions and 502 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,22 @@ jobs:
build/libs/*.jar
!build/libs/*-partial.jar
- name: Get Minecraft Version
uses: madhead/read-java-properties@latest
id: mc_version
with:
file: gradle.properties
property: minecraft_version

- name: Discord Notification Success
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.NIGHTLY_DISCORD_WEBHOOK }}
embed-title: New Nightly Build
embed-title: New Nightly Build for ${{ steps.mc_version.outputs.value }}
embed-description: A new nightly build of Ender IO has been built from the following commit. If you play with this, please remember to report issues! ```${{ github.event.head_commit.message }}```
avatar-url: https://raw.githubusercontent.com/Team-EnderIO/EnderIO/dev/1.20.1/doc/img/enderface.png
username: Ender IO Nightowl
embed-footer-text: Build number ${{ github.run_number }}
embed-footer-text: Build number ${{ github.run_number }} for MC ${{ steps.mc_version.outputs.value }}
embed-url: https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}/nightly-build.zip # NOTE: Must match "name" of the artifact as set above.
embed-color: 5763719

Expand All @@ -61,10 +68,10 @@ jobs:
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.NIGHTLY_DISCORD_WEBHOOK }}
embed-title: Nightly Build Failed
embed-title: Nightly Build Failed for ${{ steps.mc_version.outputs.value }}
embed-description: The nightly build failed to compile at this commit. ```${{ github.event.head_commit.message }}```
avatar-url: https://raw.githubusercontent.com/Team-EnderIO/EnderIO/dev/1.20.1/doc/img/gray-enderface.png
username: Ender IO Nightowl
embed-footer-text: Build number ${{ github.run_number }}
embed-footer-text: Build number ${{ github.run_number }} for MC ${{ steps.mc_version.outputs.value }}
embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
embed-color: 15548997
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,22 @@ jobs:
stringToTruncate: ${{ github.event.release.body }}
maxLength: 1000

- name: Get Minecraft Version
uses: madhead/read-java-properties@latest
id: mc_version
with:
file: gradle.properties
property: minecraft_version

- name: Discord Notification Success
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.RELEASE_DISCORD_WEBHOOK }}
embed-title: Ender IO ${{ github.event.release.tag_name }} Released
embed-title: Ender IO ${{ github.event.release.tag_name }} Released for MC ${{ steps.mc_version.outputs.value }}
embed-description: ${{ steps.truncatedChangelog.outputs.string }}
avatar-url: https://raw.githubusercontent.com/Team-EnderIO/EnderIO/dev/1.20.1/doc/img/enderface.png
username: Ender IO Releases
embed-footer-text: ${{ github.event.release.tag_name }}
embed-footer-text: ${{ github.event.release.tag_name }} for MC ${{ steps.mc_version.outputs.value }}
embed-url: ${{ github.event.release.html_url }}
embed-color: 5763719

Expand All @@ -79,11 +86,11 @@ jobs:
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.PRIVATE_DISCORD_WEBHOOK }}
embed-title: ${{ github.event.release.tag_name }} build failed
embed-title: ${{ github.event.release.tag_name }} for MC ${{ steps.mc_version.outputs.value }} build failed
embed-description: The release build is failing at this commit. ```${{ github.event.head_commit.message }}```
avatar-url: https://raw.githubusercontent.com/Team-EnderIO/EnderIO/dev/1.20.1/doc/img/gray-enderface.png
username: Ender IO Release Failure
embed-footer-text: ${{ github.event.release.tag_name }}
embed-footer-text: ${{ github.event.release.tag_name }} for MC ${{ steps.mc_version.outputs.value }}
embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
embed-color: 15548997

Expand Down
Loading

0 comments on commit 9586013

Please sign in to comment.