File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,18 @@ html:
17
17
clean :
18
18
rm -rf target
19
19
20
- jekyll-build :
20
+ jekyll-build-prepare :
21
21
mkdir -p $(JEKYLL_WORKDIR )
22
22
cp target/html/doc/* .html $(JEKYLL_WORKDIR )
23
23
cp -Ru src/* $(JEKYLL_WORKDIR )
24
+
25
+ jekyll-build : jekyll-build-prepare
24
26
jekyll build -s $(JEKYLL_WORKDIR ) -d $(JEKYLL_OUTDIR )
25
27
28
+ jekyll-build-by-docker : jekyll-build-prepare
29
+ ./tools/docker_jekyll jekyll build -s $(JEKYLL_WORKDIR ) -d $(JEKYLL_OUTDIR )
30
+
26
31
jekyll-clean :
27
32
rm -rf $(JEKYLL_WORKDIR ) $(JEKYLL_OUTDIR )
28
33
29
- .PHONY : jekyll-build jekyll-clean
34
+ .PHONY : jekyll-build-prepare jekyll-build jekyll-build-by-docker jekyll-clean
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # This uses GitHub Container Registry.
4
+ # So you need to login ghcr.io with Personal Access Token which have scope read:packages at least.
5
+ #
6
+ # Example:
7
+ #
8
+ # cat | docker login ghcr.io -u USERNAME --password-stdin
9
+ # (type your PAT and Ctrl-D twice)
10
+
11
+ set -eu
12
+
13
+ dir=" $( pwd) "
14
+
15
+ case $( uname -s) in
16
+ MSYS* ) dir=$( cygpath -w $dir ) ;;
17
+ esac
18
+
19
+ docker run --rm -it \
20
+ --workdir //srv/jekyll \
21
+ -v " ${dir} :/srv/jekyll" \
22
+ -p 4000:4000 \
23
+ --entrypoint " " \
24
+ ghcr.io/actions/jekyll-build-pages:v1.0.13 \
25
+ " $@ "
You can’t perform that action at this time.
0 commit comments