Skip to content

Commit

Permalink
CD: discord로 apk 전달
Browse files Browse the repository at this point in the history
  • Loading branch information
murjune committed Aug 22, 2024
1 parent 3ede5c8 commit 9c2eb9b
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/Android_PR_Builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on:
branches: [ an/develop ]
push:
branches: [ an/develop ]

jobs:
build:
name: PR Checker
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

2
- name: Gradle cache
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -87,6 +87,20 @@ jobs:
run: ./gradlew testDebugUnitTest
working-directory: android

- name: Build debug APK
run: ./gradlew assembleDebug
- name: Build alpha APK
run: ./gradlew assembleAlpha
working-directory: android

- name: Download APK artifact
uses: actions/download-artifact@v4
with:
name: app-alpha.apk
path: android/app/build/outputs/apk/alpha

- name: Send APK to Discord
env:
DISCORD_WEBHOOK_URL: ${{ secrets.AN_DISCORD_WEB_HOOK }}
run: |
curl -F "payload_json={\"content\":\"Here is the latest app-alpha.apk!\"}" \
-F "[email protected]" \
$DISCORD_WEBHOOK_URL

0 comments on commit 9c2eb9b

Please sign in to comment.