Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[init] discord 연동 #182

Merged
merged 20 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
7f945db
[init] #181 discord ci setting
jihyunniiii Aug 8, 2024
2defeaa
[init] #181 discord cd setting
jihyunniiii Aug 8, 2024
0eeae63
Merge remote-tracking branch 'origin/init-discord' into init-discord
jihyunniiii Aug 8, 2024
836d4f6
[init] #181 discord cd setting
jihyunniiii Aug 8, 2024
3a2fdee
[chore] #181 release_test.yml (tag)
jihyunniiii Aug 8, 2024
97a6688
[chore] #181 release_test.yml (set tag)
jihyunniiii Aug 8, 2024
1cee7e2
[chore] #181 android_ci.yml
jihyunniiii Aug 10, 2024
8c18fc3
[chore] #181 android_cd.yml
jihyunniiii Aug 10, 2024
aa622f5
[chore] #181 android_cd.yml (upload APK)
jihyunniiii Aug 10, 2024
aa6b821
[chore] #181 android_cd.yml (Build Release APK)
jihyunniiii Aug 10, 2024
b95bc56
[chore] #181 use actions/setup-java@v3
jihyunniiii Aug 10, 2024
b59e282
[chore] #181 add JDK distribution
jihyunniiii Aug 10, 2024
a296143
[chore] #181 android_cd.yml (apk 다운로드 링크 추가)
jihyunniiii Aug 10, 2024
e38eea3
[chore] #181 android_cd.yml (Get Release APK Download URL)
jihyunniiii Aug 10, 2024
f95e59b
[chore] #181 android_cd.yml (Get Release APK Download URL)
jihyunniiii Aug 10, 2024
cb55428
[chore] #181 android_cd.yml (APK 다운로드 링크 수정)
jihyunniiii Aug 10, 2024
8f956e0
[chore] #181 android_cd.yml (add artifact-id)
jihyunniiii Aug 10, 2024
53557f6
[chore] #181 android_cd.yml (url 수정)
jihyunniiii Aug 10, 2024
eb51164
[chore] #181 android_cd.yml (url 수정)
jihyunniiii Aug 10, 2024
2dcf226
[chore] #181 android_cd.yml (push only)
jihyunniiii Aug 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: DATEROAD Release Test
name: DATEROAD CD

on:
push:
Expand All @@ -12,7 +12,7 @@ defaults:

jobs:
build:
name: Release Test
name: CD
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -29,9 +29,10 @@ jobs:
${{ runner.os }}-gradle-

- name: set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'

- name: Change gradlew permissions
run: chmod +x ./gradlew
Expand Down Expand Up @@ -64,26 +65,34 @@ jobs:
echo "defaults.org=$DEFAULTS_ORG" >> sentry.properties
echo "defaults.project=$DEFAULTS_PROJECT" >> sentry.properties

- name: Build debug APK
run: ./gradlew assembleDebug --stacktrace
- name: Build Release APK
run: |
./gradlew :app:assembleRelease

- name: Upload Release APK
uses: actions/upload-artifact@v3
with:
name: release
path: ./app/build/outputs/apk/release/app-release-unsigned.apk

- name: Slack Notify - Success
- name: Discord Notify - Success
if: ${{ success() }}
uses: MeilCli/slack-upload-file@v3
uses: sarisia/actions-status-discord@v1
with:
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}
channel_id: ${{ secrets.SLACK_CHANNEL_DEPLOY }}
file_path: 'app/build/outputs/apk/debug/app-debug.apk'
file_name: 'DATEROAD-ANDROID.apk'
file_type: 'apk'
initial_comment: 'Release Test가 완료되었습니다! 🔥'
title: ✅ Release Test가 완료되었습니다! 🔥
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
color: B7FF1D
username: DATEROAD-ANDROID 🍫
content: |
Release Test가 완료되었습니다!
[❇️ APK를 다운로드해 보세요! ❇️](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})

- name: Slack Notify - Failure
- name: Discord Notify - Failure
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#FF9254'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_TITLE: '❌ Release Test Failed ❌'
SLACK_USERNAME: DATEROAD-ANDROID 🍫
SLACK_MESSAGE: '에러를 확인해 주세요 🫨'
uses: sarisia/actions-status-discord@v1
with:
title: ❌ Release Test Failed ❌
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
color: FF0000
username: DATEROAD-ANDROID 🍫
content: 에러를 확인해 주세요 🫨
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: DATEROAD PR Builder
name: DATEROAD CI
on:
pull_request:
branches: [ develop, main ]
Expand All @@ -10,7 +10,7 @@ defaults:

jobs:
build:
name: PR Checker
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -27,9 +27,10 @@ jobs:
${{ runner.os }}-gradle-

- name: set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'

- name: Change gradlew permissions
run: chmod +x ./gradlew
Expand Down Expand Up @@ -71,22 +72,22 @@ jobs:
- name: Build with Gradle
run: ./gradlew build -PcompileSdkVersion=34

- name: Slack Notify - Success
- name: Discord Notify - Success
if: ${{ success() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#B7FF1D'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_TITLE: '✅ PR Success ✅'
SLACK_USERNAME: DATEROAD-ANDROID 🍫
SLACK_MESSAGE: 'PR이 완료되었습니다! 👩‍❤️‍👨'
uses: sarisia/actions-status-discord@v1
with:
title: ✅ PR Success ✅
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
color: D3EB77
username: DATEROAD-ANDROID 🍫
content: PR이 완료되었습니다! 👩‍❤️‍👨

- name: Slack Notify - Failure
- name: Discord Notify - Failure
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

잘가 슬랙...🥹

if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#FF9254'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_TITLE: '❌ PR Failed ❌'
SLACK_USERNAME: DATEROAD-ANDROID 🍫
SLACK_MESSAGE: '에러를 확인해 주세요 🫨'
uses: sarisia/actions-status-discord@v1
with:
title: ❌ PR Failed ❌
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
color: FF0000
username: DATEROAD-ANDROID 🍫
content: 에러를 확인해 주세요 🫨
Loading