Skip to content

Commit f88572c

Browse files
test
1 parent 4578969 commit f88572c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Build & Deploy Docs
22

33
on:
4-
push: {} # 모든 브랜치
4+
push:
5+
branches: [main]
56

67
permissions: # ← 필수! contents:write
78
contents: write
@@ -25,11 +26,12 @@ jobs:
2526
run: pnpm install
2627

2728
- name: Build docs
28-
run: cd docs && pnpm rspress build # 결과: docs/dist
29+
run: pnpm rspress build # 결과: docs/dist
30+
working-directory: ./docs
2931

3032
- name: Deploy to GitHub Pages
3133
if: github.ref == 'refs/heads/main'
32-
uses: peaceiris/actions-gh-pages@v3
34+
uses: actions/upload-pages-artifact@v3
3335
with:
3436
github_token: ${{ secrets.GITHUB_TOKEN }}
35-
publish_dir: ../docs/doc_build # ← 존재 확정
37+
publish_dir: docs/doc_build # ← 존재 확정

0 commit comments

Comments
 (0)