File tree Expand file tree Collapse file tree 1 file changed +28
-14
lines changed Expand file tree Collapse file tree 1 file changed +28
-14
lines changed Original file line number Diff line number Diff line change @@ -19,34 +19,48 @@ jobs:
19
19
with :
20
20
vim_version : ' v9.1.0065'
21
21
vim_type : ' Vim'
22
+
22
23
- name : Checkout
23
24
uses : actions/checkout@v4
24
- with :
25
- path : work
25
+
26
+ #
27
+ # Generate HTML from Vim documents and upload it as an artifact.
28
+ #
29
+
26
30
- name : Generate new HTML documents
27
31
run : |
28
- cd work
29
32
make html
30
- cd ..
31
- mkdir target
32
- cp work/target/html/doc/*.html target
33
+
33
34
- name : Check commit IDs
34
35
id : commitid
35
36
run : |
36
- echo "vim=$(git -C work/ vim rev-parse HEAD)" >> $GITHUB_OUTPUT
37
- echo "vim_faq=$(git -C work/ vim_faq rev-parse HEAD)" >> $GITHUB_OUTPUT
37
+ echo "vim=$(git -C vim rev-parse HEAD)" >> $GITHUB_OUTPUT
38
+ echo "vim_faq=$(git -C vim_faq rev-parse HEAD)" >> $GITHUB_OUTPUT
38
39
39
40
- name : Upload vim generated HTML files as an artifact
40
41
uses : actions/upload-artifact@v4
41
42
with :
42
43
name : vim-generated-html
43
- path : target
44
+ path : target/html/doc/*.html
44
45
45
- # TODO: Jekyllのビルド。必要なパーツをgh-pagesブランチから持ってくる必要あり
46
+ #
47
+ # Generate GitHub Page site and upload it as an artifact.
48
+ #
46
49
47
- # uses: actions/upload-pages-artifact@v3
48
- # with:
49
- # path: _site/
50
- # retantion-days: 7
50
+ - name : Prepare for building GitHub Page (Jekyll)
51
+ run :
52
+ make jekyll-build-prepare
53
+
54
+ - name : Build GitHub Page site
55
+ uses : actions/jekyll-build-pages@v1
56
+ with :
57
+ source : target/jekyll-work
58
+ verbose : true
59
+
60
+ - name : Upload a site as an artifact
61
+ uses : actions/upload-pages-artifact@v3
62
+ with :
63
+ path : _site/
64
+ retention-days : 7
51
65
52
66
# TODO: masterへのpushもしくはcron実行のときだけ、GitHub Pagesへアップロードする
You can’t perform that action at this time.
0 commit comments