Skip to content

Commit 3d1c8c5

Browse files
committed
update post
1 parent 8993916 commit 3d1c8c5

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

README.md

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,43 @@ Next.js 기반
1717
- NOTES_SOURCE_DIR: 노트 저장소 주소 (절대주소)
1818
- IGNORED_DIRS: 무시하고 싶은 폴더 (상대주소)
1919

20-
2. 의존 프로그램 설치
20+
2. `github actions` 설정
21+
`.github/workflows/blog.yml` 파일에 추가
22+
23+
```yml
24+
name: Deploy to GitHub Pages
25+
26+
on:
27+
push:
28+
branches:
29+
- blog # 배포할 브랜치 (예: main 또는 master)
30+
31+
jobs:
32+
build-and-deploy:
33+
runs-on: ubuntu-latest
34+
permissions:
35+
contents: write # GitHub Pages 배포를 위해 쓰기 권한 부여t
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v4
39+
- uses: oven-sh/setup-bun@v2
40+
41+
- name: Install Dependencies
42+
run: bun install
43+
44+
- name: Build Project
45+
run: bun run build # out 폴더 생성
46+
47+
- name: Deploy to GitHub Pages
48+
uses: JamesIves/github-pages-deploy-action@v4
49+
with:
50+
branch: gh-pages # 배포할 브랜치
51+
folder: out # 배포할 폴더
52+
clean: true
53+
token: ${{ secrets.GITHUB_TOKEN }}
54+
```
55+
56+
3. 의존 프로그램 설치
2157
2258
- Ubuntu/Debian
2359
@@ -38,7 +74,7 @@ Next.js 기반
3874
brew install bash yq gawk perl rsync findutils gnu-sed
3975
```
4076

41-
3. neovim 에 배포용 플러그인 생성
77+
4. neovim 에 배포용 플러그인 생성
4278

4379
`lua/plugins/blog_deploy/core.lua` 파일 생성
4480

@@ -234,7 +270,7 @@ Next.js 기반
234270
> map("n", "<localleader>oP", ":BlogDeploy<CR>", map_opts)
235271
> ```
236272

237-
4. `obsidian.nvim` 설정 (중요!)
273+
5. `obsidian.nvim` 설정 (중요!)
238274
해당 블로그는 파일 이름과 파일 내부의 프론트메터를 통해 블로그에 포스팅 되기 때문에 필수적으로 해야하는 설정이 있다
239275

240276
- 파일명과 프론트메터의 분리

0 commit comments

Comments
 (0)