π :: [#76] Profile λ‘κ·Έμμ νμ μΆκ° #181
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |