Skip to content

Commit 4ad3c37

Browse files
authored
Update deploy.yml
1 parent 11abc79 commit 4ad3c37

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

.github/workflows/deploy.yml

+11-19
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,24 @@ jobs:
3232
- name: Detect changes and run build
3333
id: detect-changes
3434
run: |
35-
# CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
36-
37-
# echo "Changed files: $CHANGED_FILES"
38-
# WEEKS=("week1" "week2")
39-
40-
# for WEEK in "${WEEKS[@]}"; do
41-
# if [ -d "$WEEK" ]; then # 해당 주차 폴더가 존재하는지 확인
42-
# echo "Checking projects in $WEEK"
43-
44-
# # 해당 주차 폴더 하위의 모든 프로젝트 폴더를 읽어서 순회
45-
# for PROJECT in $(ls -d $WEEK/*/); do
46-
# PROJECT=${PROJECT%/} # 디렉토리 이름에서 마지막 '/' 제거
47-
# if echo "$CHANGED_FILES" | grep -q "$PROJECT/"; then
48-
# echo "Running build for $PROJECT"
49-
# pnpm --filter "$PROJECT" build
50-
# fi
51-
# done
52-
# fi
53-
# done
5435
pnpm build
5536
5637
- name: Create dynamic index.html
5738
run: |
5839
echo "Generating dynamic index.html"
5940
node .scripts/index-page-builder.js
6041
42+
- name: Setup Pages
43+
if: github.ref == 'refs/heads/main'
44+
uses: actions/configure-pages@v3
45+
46+
- name: Upload Artifact
47+
if: github.ref == 'refs/heads/main'
48+
uses: actions/upload-pages-artifact@v1
49+
with:
50+
# location of the coverage artifacts
51+
path: "./coverage"
52+
6153
deploy-coverage:
6254
if: github.ref == 'refs/heads/main'
6355
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)