File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 52
52
- name : fetch and build libcmark-gfm.so
53
53
if : ${{ inputs.gfm == 'true' }}
54
54
shell : bash
55
+ env :
56
+ WORKDIR : /opt/pelican-asf # where to build GFM
57
+ GFM_VERSION : ' 0.28.3.gfm.12' # ensure we agree with build-cmark.sh script
55
58
run : |
56
59
{
57
60
# disable stdout unless debug is on
@@ -62,15 +65,16 @@ runs:
62
65
exec >/dev/null
63
66
fi
64
67
# Don't pollute site checkout
65
- pushd .. # .. must agree with LIBCMARKDIR
66
- bash ${{ github.action_path }}/build-cmark.sh
68
+ mkdir -p $WORKDIR
69
+ pushd $WORKDIR
70
+ bash ${{ github.action_path }}/build-cmark.sh $GFM_VERSION
67
71
popd
72
+ # ensure LIBCMARKDIR is defined for subsequent steps
73
+ echo "LIBCMARKDIR=${WORKDIR}/cmark-gfm-${GFM_VERSION}/lib" >> $GITHUB_ENV
68
74
}
69
75
70
76
- name : Generate website from markdown
71
77
shell : bash
72
- env : # in case we are using GFM (otherwise ignored)
73
- LIBCMARKDIR : " ../cmark-gfm-0.28.3.gfm.12/lib"
74
78
run : |
75
79
if [ "${{ inputs.debug }}" == 'true' ]
76
80
then
You can’t perform that action at this time.
0 commit comments