Skip to content

Commit

Permalink
Merge pull request #31 from noir-neo/revert-discord
Browse files Browse the repository at this point in the history
Revert upload to discord
  • Loading branch information
noir-neo authored Dec 7, 2023
2 parents 9897973 + f66a821 commit d8c4b94
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,3 @@ jobs:
name: hatbor-macOS-${{ steps.buildStep.outputs.buildVersion }}
path: hatbor.dmg

- name: Upload to Discord
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
FILE: hatbor.dmg
CONTENT: ${{ format('hatbor {0} for macOS', steps.buildStep.outputs.buildVersion) }}
run: |
curl \
-F 'payload_json={"content":"$CONTENT"}' \
-F "file1=@$FILE" \
$DISCORD_WEBHOOK
12 changes: 0 additions & 12 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,3 @@ jobs:
name: hatbor-Windows-${{ steps.buildStep.outputs.buildVersion }}
path: build/StandaloneWindows64

- name: Upload to Discord
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DIR: ${{ format('{0}/build/StandaloneWindows64', github.workspace) }}
ZIP: ${{ format('hatbor-Windows-{0}.zip', steps.buildStep.outputs.buildVersion) }}
CONTENT: ${{ format('hatbor {0} for Windows', steps.buildStep.outputs.buildVersion) }}
run: |
zip -qq -r $ZIP $DIR
curl \
-F 'payload_json={"content":"$CONTENT"}' \
-F "file1=@$ZIP" \
$DISCORD_WEBHOOK

0 comments on commit d8c4b94

Please sign in to comment.