Skip to content

Commit 12c4339

Browse files
committed
build a site with jekyll and upload it as an artifact
1 parent 5e7e7d6 commit 12c4339

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,18 @@ jobs:
4242
name: vim-generated-html
4343
path: target
4444

45-
# TODO: Jekyllのビルド。必要なパーツをgh-pagesブランチから持ってくる必要あり
46-
47-
#uses: actions/upload-pages-artifact@v3
48-
#with:
49-
# path: _site/
50-
# retantion-days: 7
45+
- name: Prepare for Jekyll build
46+
run:
47+
make jekyll-build-prepare
48+
- name: Jekyll (GitHub Pages) build
49+
uses: actions/jekyll-build-pages@v1
50+
with:
51+
source: target/jekyll-work
52+
verbose: true
53+
- name: Upload jekyll built site as an artifact
54+
uses: actions/upload-pages-artifact@v3
55+
with:
56+
path: _site/
57+
retantion-days: 7
5158

5259
# TODO: masterへのpushもしくはcron実行のときだけ、GitHub Pagesへアップロードする

0 commit comments

Comments
 (0)