Skip to content

Commit

Permalink
First Release On Discord
Browse files Browse the repository at this point in the history
  • Loading branch information
LuftVerbot committed May 20, 2024
1 parent f808372 commit 9e5774d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,15 @@ jobs:
- name: Upload APK
uses: actions/upload-artifact@v4
with:
path: app/build/outputs/apk/debug/app-debug.apk
path: app/build/outputs/apk/debug/app-debug.apk

- name: Upload APK to Discord
shell: bash
env:
ROLE: ${{ secrets.DISCORD_PING_ROLE_ID }}
WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
run: |
message=$(echo "<@&${{ env.ROLE }}> **Youtube Extension : ${{ env.VERSION }}**\n${{ env.COMMIT }}")
curl -F "payload_json={\"content\":\"${message}\"}" \
-F "echo_beta=@app/build/yt-${{ env.VERSION }}.apk" \
${{ env.WEBHOOK }}

0 comments on commit 9e5774d

Please sign in to comment.