From 68662d81df06ce3c5815f25a9689aeedde0776ad Mon Sep 17 00:00:00 2001 From: karnelll <165611407+karnelll@users.noreply.github.com> Date: Sat, 5 Oct 2024 01:32:33 +0900 Subject: [PATCH 1/2] Add GitHub issue templates and workflows --- fe/PULL_REQUEST_TEMPLATE.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 fe/PULL_REQUEST_TEMPLATE.md diff --git a/fe/PULL_REQUEST_TEMPLATE.md b/fe/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..7df9fb5 --- /dev/null +++ b/fe/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,14 @@ +## #️⃣연관 이슈 + +> ex) #이슈번호 + +## 📝작업 내용 + +> + +## 📸스크린샷 + +## 추가 사항 +> + +## 💬리뷰 요구사항(선택) From 2f51454a104580f1b49bd0487aa56d5e85f78da1 Mon Sep 17 00:00:00 2001 From: karnelll <165611407+karnelll@users.noreply.github.com> Date: Sat, 5 Oct 2024 01:36:50 +0900 Subject: [PATCH 2/2] Fix: Remove .github submodule and re-add as regular folder --- .github | 1 - .github/ISSUE_TEMPLATE/bug_report.md | 22 +++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 +++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 14 +++++++++++ .github/workflows/auto.yml | 30 +++++++++++++++++++++++ .github/workflows/build.yml | 29 ++++++++++++++++++++++ 6 files changed, 115 insertions(+), 1 deletion(-) delete mode 160000 .github create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/auto.yml create mode 100644 .github/workflows/build.yml diff --git a/.github b/.github deleted file mode 160000 index 1e8a03d..0000000 --- a/.github +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1e8a03d24a51a883d27279b98afae8f364106d41 diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..b4d8c8a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,22 @@ +--- +name: Bug report +about: 버그 이슈 템플릿 +title: '' +labels: '' +assignees: '' + +--- + +## 어떤 버그인가요? + +> 어떤 버그인지 간결하게 설명해주세요 + +## 어떤 상황에서 발생한 버그인가요? + +> (가능하면) Given-When-Then 형식으로 서술해주세요 + +## 예상 결과 + +> 예상했던 정상적인 결과가 어떤 것이었는지 설명해주세요 + +## 참고할만한 자료(선택) diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..47baf36 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: 기능 추가 이슈 템플릿 +title: '' +labels: '' +assignees: '' + +--- + +## 어떤 기능인가요? + +> + +## 작업 상세 내용 + +- [ ] TODO +- [ ] TODO +- [ ] TODO + +## 참고할만한 자료(선택) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..7df9fb5 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,14 @@ +## #️⃣연관 이슈 + +> ex) #이슈번호 + +## 📝작업 내용 + +> + +## 📸스크린샷 + +## 추가 사항 +> + +## 💬리뷰 요구사항(선택) diff --git a/.github/workflows/auto.yml b/.github/workflows/auto.yml new file mode 100644 index 0000000..c0124c8 --- /dev/null +++ b/.github/workflows/auto.yml @@ -0,0 +1,30 @@ +name: git push into another repo to deploy to vercel + +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 + - 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 }} + with: + source-directory: 'output' + destination-github-username: yeyounging + destination-repository-name: kusitms-sc-fe + user-email: ${{ secrets.OFFICIAL_ACCOUNT_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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9c78a53 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: CI + +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: 레포지토리 체크아웃 중.. + uses: actions/checkout@v2 + + - name: node 설치중.. + uses: actions/setup-node@v2 + with: + node-version: '18.18.2' + + - name: pnpm 설치중.. + run: npm install -g pnpm + + - name: 종속성 설치중... + run: pnpm install + working-directory: ./fe + + - name: 빌드 중.. + run: pnpm build + working-directory: ./fe