Skip to content

Commit

Permalink
feat: 프론트엔드 aws s3 배포확인
Browse files Browse the repository at this point in the history
  • Loading branch information
GihoKo committed Jul 13, 2024
1 parent 6f0086c commit b4bb41f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to S3

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build

- name: Deploy to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
run: |
npm install -g aws-cli
aws s3 sync build/ s3://$S3_BUCKET_NAME --delete
6 changes: 5 additions & 1 deletion src/components/Molcules/SideBar/CreateChannelButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import styled from 'styled-components';
import { CreateChannelButtonProps } from '../../types/interface';
import addChannelSvg from '../../../images/svg/add-square.svg';

interface CreateChannelButtonProps {
isOpen: boolean;
onClick: () => void;
}

export default function CreateChannelButton({ isOpen, onClick }: CreateChannelButtonProps) {
return (
<Button $isOpen={isOpen} onClick={onClick}>
Expand Down

0 comments on commit b4bb41f

Please sign in to comment.