Skip to content

Commit

Permalink
feat(ci): Allow releases to be sent to separate webhook (#179)
Browse files Browse the repository at this point in the history
* docs: Update readme version into

* feat(ci): Allow releases to be sent to separate webhook

* docs: Add discord server to README
  • Loading branch information
leviem1 authored Sep 22, 2024
1 parent 5b39c5a commit c08c308
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Notify
uses: appleboy/discord-action@v1.0.0
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
webhook_id: ${{ secrets.DISCORD_RELEASE_WEBHOOK_ID || secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_RELEASE_WEBHOOK_TOKEN || secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#00FF00"
username: "${{ env.PROJECT_NAME }} Release Bot"
message: >
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# PaperMC/Spigot Minecraft Server Plugin Template
A template for building PaperMC/Spigot Minecraft server plugins!

<!-- TODO: CHANGE ME -->
[![Build, Test, and Release](https://github.com/CrimsonWarpedcraft/plugin-template/actions/workflows/main.yml/badge.svg)](https://github.com/CrimsonWarpedcraft/plugin-template/actions/workflows/main.yml)

<!-- TODO: CHANGE ME -->
[![](https://dcbadge.limes.pink/api/server/5XMmeV6EtJ)](https://discord.gg/5XMmeV6EtJ)

## Features
### Github Actions 🎬
* Automated builds, testing, and release drafting
Expand Down Expand Up @@ -40,7 +44,8 @@ Here's a list of the PaperMC versions and the versions of this latest compatible

| PaperMC | ExamplePlugin |
|---------|---------------|
| 1.21 | 3.12.0+ |
| 1.21.1 | 3.12.2+ |
| 1.21 | 3.12.0 |
| 1.20.6 | 3.11.0 |
| 1.20.4 | 3.9.3 |
| 1.20.2 | 3.8.4 |
Expand Down Expand Up @@ -78,6 +83,9 @@ should be set to the id of your Discord webhook. `DISCORD_WEBHOOK_TOKEN` will be
You can find these values by copying the Discord Webhook URL:
`https://discord.com/api/webhooks/<DISCORD_WEBHOOK_ID>/<DISCORD_WEBHOOK_TOKEN>`

Optionally, you can also configure `DISCORD_RELEASE_WEBHOOK_ID` and `DISCORD_RELEASE_WEBHOOK_TOKEN`
to send release announcements to a separate channel.

For more information, see [Discord Message Notify](https://github.com/marketplace/actions/discord-message-notify).

---
Expand Down

0 comments on commit c08c308

Please sign in to comment.