🔀 Deploy #56
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: Dotori_V2_CI | |
on: | |
pull_request: | |
branches: | |
- 'develop' | |
- 'main' | |
jobs: | |
DOTORI_V2_CI: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- run: yarn install --frozen-lockfile | |
- run: yarn build | |
- name: Success notification to discord | |
uses: sarisia/[email protected] | |
if: ${{ success() }} | |
with: | |
webhook: ${{ secrets.WEBHOOK_CI }} | |
title: "🎉 Dotori Client CI 🐿" | |
description: "CI success" | |
content: "<@${{ secrets.ID1 }}> <@${{ secrets.ID2 }}> <@${{ secrets.ID3 }}> <@${{ secrets.ID4 }}>\n확인부탁드려용~" | |
username: DOTORI V2 CI bot | |
url: "https://github.com/Team-Ampersand/Dotori-client-v2" | |
color: 4CAF50 | |
- name: Failure notification to discord | |
uses: sarisia/[email protected] | |
if: ${{ failure() }} | |
with: | |
webhook: ${{ secrets.WEBHOOK_CI }} | |
title: "❌ Dotori Client CI 🐿" | |
description: "CI failed" | |
content: "안돼 안바꿔줘 돌아가" | |
username: DOTORI V2 CI bot | |
url: "https://github.com/Team-Ampersand/Dotori-client-v2" | |
color: e74c3c |