Skip to content

Commit 6e0e812

Browse files
build-docs.yaml에서 GitHub Pages 배포 작업을 별도의 단계로 분리하여 문서 배포 프로세스를 개선함.
1 parent 83276ba commit 6e0e812

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/build-docs.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ permissions:
1313
jobs:
1414
build-docs:
1515
runs-on: ubuntu-latest
16-
environment:
17-
name: github-pages
18-
url: ${{ steps.deployment.outputs.page_url }}
19-
permissions:
20-
contents: read
2116
steps:
2217
- name: Checkout
2318
uses: actions/checkout@v4
@@ -42,6 +37,14 @@ jobs:
4237
path: docs
4338
if-no-files-found: error
4439
retention-days: 14
45-
- name: Deploy to GitHub Pages
46-
id: deployment
47-
uses: actions/deploy-pages@v4
40+
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
runs-on: ubuntu-latest
46+
needs: build
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)