작업을 보여 주세요
발행: (2026년 2월 16일 오전 03:08 GMT+9)
2 분 소요
원문: Dev.to
Source: Dev.to
사이트 구성
diff --git a/site/hugo.toml b/site/hugo.toml
index 4dba0ec..7d59855 100644
--- a/site/hugo.toml
+++ b/site/hugo.toml
@@ -1,6 +1,6 @@
-baseURL = 'https://example.org/'
+baseURL = 'https://imomaliev.com/'
languageCode = 'en-us'
-title = 'My New Hugo Site'
+title = 'Blog'
[module]
replacements = 'github.com/imomaliev/blog/theme -> ../../theme'
Host on GitHub Pages 가이드의 모든 단계를 따르세요.
워크플로 업데이트: 사이트 디렉터리에서 빌드 및 배포
diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml
index 20e1d20..d8cc26d 100644
--- a/.github/workflows/hugo.yaml
+++ b/.github/workflows/hugo.yaml
@@ -74,6 +74,7 @@ jobs:
hugo-
- name: Build the site
run: |
+ cd site/
hugo \
--gc \
--minify \
@@ -88,7 +89,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
- path: ./public
+ path: ./site/public
deploy:
environment:
name: github-pages
사용자 지정 도메인 구성
우리는 GitHub Actions를 통해 사이트를 배포할 것이므로 4단계에서 CNAME 설정을 건너뛸 수 있습니다. 5단계에서는 AAAA 레코드를 설정합니다. GitHub으로 도메인을 인증하세요.
그리고 이제 라이브입니다!
제목은 같은 이름의 책에서 영감을 받았습니다.