diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml index 78ea44b..9dff3b4 100644 --- a/.github/workflows/build-mac.yml +++ b/.github/workflows/build-mac.yml @@ -60,8 +60,9 @@ jobs: env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} FILE: hatbor.dmg - TITLE: ${{ format('macOS {0}', steps.buildStep.outputs.buildVersion) }} + CONTENT: ${{ format('hatbor {0} for macOS', steps.buildStep.outputs.buildVersion) }} run: | - curl -H 'Content-Type: multipart/form-data' \ - -X POST \ - -F "file1=@$FILE payload_json={"embeds":[{"title":"$TITLE"}]}" $DISCORD_WEBHOOK + curl \ + -F 'payload_json={"content":"$CONTENT"}' \ + -F "file1=@$FILE" \ + $DISCORD_WEBHOOK \ No newline at end of file diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 883ffe0..43f95fc 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -42,9 +42,10 @@ jobs: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} DIR: ${{ format('{0}/build/StandaloneWindows64', github.workspace) }} ZIP: ${{ format('hatbor-Windows-{0}.zip', steps.buildStep.outputs.buildVersion) }} - TITLE: ${{ format('Windows {0}', steps.buildStep.outputs.buildVersion) }} + CONTENT: ${{ format('hatbor {0} for Windows', steps.buildStep.outputs.buildVersion) }} run: | zip -qq -r $ZIP $DIR - curl -H 'Content-Type: multipart/form-data' \ - -X POST \ - -F "file1=@$ZIP payload_json={"embeds":[{"title":"$TITLE"}]}" $DISCORD_WEBHOOK + curl \ + -F 'payload_json={"content":"$CONTENT"}' \ + -F "file1=@$ZIP" \ + $DISCORD_WEBHOOK