-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.3 KB
/
EXPO_CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Expo CI
on:
pull_request:
branches: [ "*" ]
push:
branches: [ "*" ]
jobs:
CI:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Swift
uses: swift-actions/setup-swift@v1
with:
swift-version: '5.9'
- name: Build Project
run: swift build
- name: Send Success Notification to Discord
uses: sarisia/actions-status-discord@v1
if: ${{ success() }}
with:
title: CI 성공!
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: 성공
image: ${{ secrets.CI_SUCCESS_IMAGE }}
description: CI가 성공적으로 완료되었습니다.
color: 00FF00
username: CI Bot
url: https://github.com/School-of-Company/Expo-iOS
- name: Send Failure Notification to Discord
uses: sarisia/actions-status-discord@v1
if: ${{ failure() }}
with:
title: CI 실패!
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: 실패
image: ${{ secrets.CI_FAIL_IMAGE }}
description: CI가 실패했습니다. 로그를 확인해주세요.
color: FF0000
username: CI Bot
url: https://github.com/School-of-Company/Expo-iOS