Skip to content

Commit 5df070e

Browse files
committed
fix: ci/cd 슬랙 apk 업로드 제거
1 parent 0e9590a commit 5df070e

1 file changed

Lines changed: 45 additions & 20 deletions

File tree

.github/workflows/android.yml

Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ jobs:
117117
echo "version_code=$VERSION_CODE" >> $GITHUB_OUTPUT
118118
echo "Extracted version: $VERSION_NAME ($VERSION_CODE)"
119119
120+
- name: Get timestamp
121+
id: timestamp
122+
run: echo "timestamp=$(date +%s)" >> $GITHUB_OUTPUT
123+
120124
- name: Build with Gradle
121125
run: ./gradlew build
122126

@@ -195,24 +199,45 @@ jobs:
195199
196200
APK: Prod Release Version
197201
198-
- name: Upload APK to Slack
199-
if: ${{success()}}
200-
uses: MeilCli/slack-upload-file@v1
202+
- name: action-slack
203+
uses: 8398a7/action-slack@v3
201204
with:
202-
slack_token: ${{ secrets.SLACK_TOKEN }}
203-
channels: ${{ secrets.SLACK_CHANNEL }}
204-
file_path: app/build/outputs/apk/prod/release/app-prod-release.apk
205-
file_name: RunCombi-Android-v${{ steps.app_version.outputs.version_name }}.apk
206-
file_type: apk
207-
initial_comment: |
208-
🎉 RunCombi Android APK 빌드 완료!
209-
210-
**Version:** v${{ steps.app_version.outputs.version_name }} (${{ steps.app_version.outputs.version_code }})
211-
**PR:** ${{ github.event.pull_request.title }}
212-
**Author:** @${{ github.event.pull_request.user.login }}
213-
**Branch:** ${{ github.event.pull_request.head.ref }} → ${{ github.event.pull_request.base.ref }}
214-
215-
**PR 내용:**
216-
${{ github.event.pull_request.body || '내용이 없습니다.' }}
217-
218-
APK 파일이 성공적으로 업로드되었습니다.
205+
status: ${{ job.status }}
206+
author_name: RunCombi Android CI
207+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
208+
if_mention: failure,cancelled
209+
custom_payload: |
210+
{
211+
"attachments": [{
212+
"color": "${{ job.status == 'success' && '#36a64f' || '#ff0000' }}",
213+
"title": "🎉 RunCombi Android 빌드 완료",
214+
"fields": [
215+
{
216+
"title": "📱 앱 버전",
217+
"value": "v${{ steps.app_version.outputs.version_name }} (${{ steps.app_version.outputs.version_code }})",
218+
"short": true
219+
},
220+
{
221+
"title": "🔗 PR 제목",
222+
"value": "${{ github.event.pull_request.title }}",
223+
"short": true
224+
},
225+
{
226+
"title": "📝 PR 내용",
227+
"value": "${{ github.event.pull_request.body || '내용이 없습니다.' }}",
228+
"short": false
229+
},
230+
{
231+
"title": "🚀 GitHub Release",
232+
"value": "https://github.com/${{ github.repository }}/releases/tag/v${{ steps.app_version.outputs.version_name }}",
233+
"short": false
234+
}
235+
],
236+
"footer": "RunCombi Android CI",
237+
"ts": "${{ env.TIMESTAMP }}"
238+
}]
239+
}
240+
env:
241+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
242+
TIMESTAMP: ${{ steps.timestamp.outputs.timestamp }}
243+
if: always()

0 commit comments

Comments
 (0)