Skip to content

Commit d9e6c46

Browse files
committed
docs: Docusaurus 배포를 위한 GitHub Actions 워크플로우 추가
1 parent 3bfeb1d commit d9e6c46

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy Docusaurus to GitHub Pages
2+
3+
env:
4+
NODE_OPTIONS: --max_old_space_size=4096
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 18
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Build website
27+
run: npm run build
28+
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v4
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./build

0 commit comments

Comments
 (0)