-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
프로젝트 추가 세팅(husky, github action for gh-pages ci) (#9)
* Build: husky 적용 * Docs: 리드미 수정(남은 개발 목록) * Style: NotFoundPage 스타일 코드 컴포넌트 아래로 이동 * Docs: 이슈 및 pr템플릿 * Build: gh-pages 자동 빌드 action
- Loading branch information
1 parent
ba5fd10
commit 1655fab
Showing
8 changed files
with
433 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '[FE|BE] 홈 UI 렌더링 실패' | ||
labels: 'bug' | ||
assignees: '' | ||
--- | ||
|
||
## 버그 내용 및 예상 행동 | ||
|
||
ex) 00 기능 클릭 시 에러 발생 - 클릭 시 000이 되어야함. | ||
|
||
## 환경 | ||
|
||
### Desktop(아래 정보를 채워주세요.) | ||
|
||
- OS: [e.g. iOS] | ||
- Browser: [e.g chorme, safari] | ||
- Version: [e.g. 22] | ||
|
||
### SmartPhone | ||
|
||
- Device: [e.g iPhone 13] | ||
- OS: [e.g. iOS8,1] | ||
- Browser: [e.g safari] | ||
- Version: [e.g. 22] | ||
|
||
## 스크린샷 | ||
|
||
스크린샷 1 | ||
|
||
## 닫는 조건 | ||
|
||
- [ ]: 닫는조건1 | ||
- [ ]: 닫는조건2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '[FE|BE] 00 기능 구현 요청' | ||
labels: 'feat' | ||
assignees: '' | ||
--- | ||
|
||
## 기능 요청사항 | ||
|
||
ex) 로그인 기능이 필요해요. | ||
|
||
## 요청 세부사항 | ||
|
||
ex) 로그인 기능을 만들어주세요. | ||
|
||
## 레퍼런스 | ||
|
||
ex) 관련 사진 및 링크 첨부 | ||
|
||
## 닫는 조건 | ||
|
||
- [ ]: 닫는조건1 | ||
- [ ]: 닫는조건2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# About | ||
|
||
ex) OO 기능 구현 | ||
|
||
## Description | ||
|
||
- 흐름을 간단하게 작성하면 됩니다. | ||
|
||
ex) | ||
구현 사항 요약 | ||
|
||
1. OO 구조 설계 | ||
2. OO 클래스 분리 | ||
3. 메서드 구현 | ||
|
||
## Result | ||
|
||
ex) 실행, 테스트 결과 또는 사진 첨부 | ||
|
||
## Ref | ||
|
||
ex) 관련 이슈 직접 태그, #3, #13 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Sample workflow for building and deploying a Gatsby site to GitHub Pages | ||
# | ||
# To get started with Gatsby see: https://www.gatsbyjs.com/docs/quick-start/ | ||
# | ||
name: Deploy Gatsby site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ['main'] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: true | ||
|
||
# Default to bash | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Detect package manager | ||
id: detect-package-manager | ||
run: | | ||
if [ -f "${{ github.workspace }}/yarn.lock" ]; then | ||
echo "manager=yarn" >> $GITHUB_OUTPUT | ||
echo "command=install" >> $GITHUB_OUTPUT | ||
exit 0 | ||
elif [ -f "${{ github.workspace }}/package.json" ]; then | ||
echo "manager=npm" >> $GITHUB_OUTPUT | ||
echo "command=ci" >> $GITHUB_OUTPUT | ||
exit 0 | ||
else | ||
echo "Unable to determine packager manager" | ||
exit 1 | ||
fi | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
cache: ${{ steps.detect-package-manager.outputs.manager }} | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v2 | ||
with: | ||
# Automatically inject pathPrefix in your Gatsby configuration file. | ||
# | ||
# You may remove this line if you want to manage the configuration yourself. | ||
static_site_generator: gatsby | ||
- name: Restore cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
public | ||
.cache | ||
key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }} | ||
restore-keys: | | ||
${{ runner.os }}-gatsby-build- | ||
- name: Install dependencies | ||
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} | ||
- name: Build with Gatsby | ||
env: | ||
PREFIX_PATHS: 'true' | ||
run: ${{ steps.detect-package-manager.outputs.manager }} run build | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: ./public | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
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
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
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
Oops, something went wrong.