Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 🛠️ **PR 개요**
# 🛠️ **PR 개요** [#이슈번호]

<!-- 해당 Pull Request와 관련된 Issue를 적습니다. -->
<!-- 기입 예 -->
<!-- * #{이슈번호} -->

- **변경 사항 요약:**
```
Expand Down Expand Up @@ -37,7 +41,7 @@

예외가 발생한 코드

```java
```jsx
// 코드
```

Expand All @@ -47,6 +51,6 @@

수정한 코드

```java
```jsx
// 수정한 코드
```
19 changes: 16 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ~/.npm
path: |
~/.npm
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
Expand All @@ -27,6 +29,16 @@ jobs:
- name: Install dependencies
run: npm install

# 캐시된 Vite 빌드 복원 (Vite 빌드 캐시 저장)
- name: Cache Vite build cache
uses: actions/cache@v3
with:
path: |
node_modules/.vite
key: ${{ runner.os }}-vite-${{ hashFiles('**/vite.config.js') }}
restore-keys: |
${{ runner.os }}-vite-

# Netlify CLI 캐시 설정
- name: Cache Netlify CLI
uses: actions/cache@v3
Expand All @@ -50,7 +62,8 @@ jobs:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: |
DEPLOY_OUTPUT=$(netlify deploy —auth=$NETLIFY_AUTH_TOKEN —site=$NETLIFY_SITE_ID —message "Deploy for PR" —json)
# Netlify CLI 배포 명령어에 잘못된 하이픈 수정
DEPLOY_OUTPUT=$(netlify deploy --auth=$NETLIFY_AUTH_TOKEN --site=$NETLIFY_SITE_ID --message "Deploy for PR" --json)
DEPLOY_URL=$(echo $DEPLOY_OUTPUT | jq -r .deploy_url)
echo "Deploy URL: $DEPLOY_URL"
echo "TEST_DEPLOY_URL=$DEPLOY_URL" >> $GITHUB_ENV
Expand All @@ -60,7 +73,7 @@ jobs:
if: github.event_name == 'pull_request'
run: |
curl -s -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Authorization: token ${{ secrets.MY_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \
-d '{"body": "🚀 Test site deployed: '"$TEST_DEPLOY_URL"'"}'
Loading