refactor: 기존 Button 컴포넌트를 LinkedButton 컴포넌트로 리팩터링후 공용 버튼 컴포넌트를 새로 만듬 #102
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: Production Deploy storybook to Vercel | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
deploy-storybook-static: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
with: | |
version: 7.26.3 | |
- name: Install Vercel CLI | |
run: npm install --global vercel@latest | |
- name: Pull Vercel Environment Information | |
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_DEPLOY_TOKEN_2 }} | |
- name: Build Storybook Artifacts | |
env: | |
NEXT_PUBLIC_STORAGE_URL: ${{ secrets.NEXT_PUBLIC_STORAGE_URL }} | |
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }} | |
run: | | |
pnpm install | |
NEXT_PUBLIC_STORAGE=${{ secrets.NEXT_PUBLIC_STORAGE }} pnpm build-storybook | |
cd ./storybook-static | |
- name: Deploy Storybook Artifacts to Vercel | |
run: vercel --name ocean-portfolio-storybook --prod --yes ./storybook-static --token=${{ secrets.VERCEL_DEPLOY_TOKEN_2 }} | |
discord-webhook-notify: | |
name: Discord Notification | |
runs-on: ubuntu-latest | |
needs: | |
- deploy-storybook-static | |
if: ${{ always() }} | |
steps: | |
- name: discord-webhook-notify | |
uses: nobrayner/discord-webhook@v1 | |
with: | |
github-token: ${{ secrets.github_token }} | |
discord-webhook: ${{ secrets.UPDATE_WEBHOOK }} | |
username: 'oceanBot' | |
avatar-url: 'https://cdn.discordapp.com/app-icons/1044621624864940163/87fe18353f90a7a4c275be945afc14e5.png?size=512' | |
title: 'storybook static page 업데이트 : ${{ github.event_name }}' | |
description: "🚥 상태 : {{STATUS}}\n🔍 로그 확인 : 제목을 클릭하세요\n주소 : https://storybook.brand-ing.me" | |
include-details: 'false' | |
color-success: '#008d62' | |
color-failure: '#9b111e' | |
color-cancelled: '#ffd400' |