File tree 1 file changed +5
-12
lines changed
1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -35,24 +35,17 @@ jobs:
35
35
git add -A
36
36
timestamp=$(date -u)
37
37
git commit -m "[Sync: translations->master]: ${timestamp}" || exit 0
38
+ - name : Install Hugo
39
+ run : . ./master/.ci/install_hugo.sh
38
40
- name : Test build changes to master branch
39
- env :
40
- HUGO_VERSION : ' 0.71.1'
41
- HUGO_IMAGE : ' ext-alpine'
41
+ working-directory : " ./master"
42
42
run : |
43
- site_repo_dir="${GITHUB_WORKSPACE}/master"
44
- label="${HUGO_VERSION}-${HUGO_IMAGE}"
45
- echo "Using klakegg/hugo:${label}"
46
43
# Set up output directory
47
44
OUTPUT_DIR="${HOME}/output/tmp/public"
48
45
echo "OUTPUT_DIR=${OUTPUT_DIR}"
49
46
mkdir -p "${OUTPUT_DIR}"
50
- # Run test Hugo build
51
- docker run --rm -t \
52
- -v ${site_repo_dir}:/src \
53
- -v ${OUTPUT_DIR}:/target \
54
- klakegg/hugo:${label} \
55
- --minify --i18n-warnings --gc --path-warnings --verbose
47
+ # Run Hugo build
48
+ hugo --minify --i18n-warnings --gc --path-warnings --verbose --destination "${OUTPUT_DIR}"
56
49
- name : Push changes to master branch
57
50
env :
58
51
GITHUB_ACTOR : ${{ secrets.WZ2100_PUSH_USERNAME }}
You can’t perform that action at this time.
0 commit comments