diff --git a/.github/workflows/github-release-to-discord.yml b/.github/workflows/github-release-to-discord.yml new file mode 100644 index 0000000..67f0270 --- /dev/null +++ b/.github/workflows/github-release-to-discord.yml @@ -0,0 +1,15 @@ +on: + release: + types: [published] +name: github-release-to-discord +jobs: + github-release-to-discord: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Github Releases To Discord + uses: SethCohen/github-release-to-discord@v1.12.0 + id: release + with: + webhook_url: ${{ secrets.WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index afec9b1..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,18 +0,0 @@ -on: - release: - types: [published] -name: github-release-to-discord -jobs: - github-release-to-discord: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Handle Release - uses: ./ # Uses an action in the root directory - id: release - with: - webhook_url: ${{ secrets.WEBHOOK_URL }} - color: "2105893" - username: "Release Changelog" - avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png" \ No newline at end of file