Skip to content
Merged
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PR Build

on:
pull_request:
branches: ['**']

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Corepack
run: corepack enable

- name: Install Dependency
run: yarn install

- name: Lint test
run: yarn lint

- name: Build test
working-directory: ./src
run: yarn build
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy

on:
push:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest

container: pandoc/latex

steps:
- uses: actions/checkout@v2

- name: Install mustache (to update the date)

run: apk add ruby && gem install mustache
Comment on lines +16 to +18
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

혹시 이 작업은 왜 필요한 건지 궁금합니다..!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

템플릿 엔진을 설치하여 빌드 시 날짜 업데이트 등의 작업에 사용될 수 있는데, 현재 build.sh 에서 단순 파일 복사만 진행하고 있어 삭제해도 되는 부분같네요
확인해주셔서 감사합니다!


- name: creates output

run: sh ./build.sh

- name: Pushes to another repository

id: push_directory

uses: cpina/github-action-push-to-another-repository@main

env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}

with:
source-directory: 'output'

destination-github-username: P1su

destination-repository-name: moment-front

user-email: ${{ secrets.EMAIL }}

commit-message: ${{ github.event.commits[0].message }}

target-branch: main

- name: Test get variable exported by push-to-another-repository

run: echo $DESTINATION_CLONED_DIRECTORY
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd ../
mkdir output
cp -R ./moment-front/* ./output
cp -R ./output ./moment-front/
1 change: 0 additions & 1 deletion src/pages/Feed/components/FeedModal/FeedModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ interface FeedModalProps {
}

const FeedModal = ({
friendList,
currentFriend,
setCurrentFriend,
closeModal,
Expand Down