Use exampleSite content for page building

This commit is contained in:
Stefan M
2019-06-06 11:34:45 +02:00
committed by StefMa
parent 4b7062657d
commit 0e20a4d28d

View File

@@ -33,9 +33,15 @@ jobs:
name: Replace default config name: Replace default config
working_directory: my-site working_directory: my-site
command: | command: |
if [[ ${CIRCLE_BRANCH} == "*pull*" ]]; then
git fetch origin ${CIRCLE_BRANCH}/head:BRANCHNAME
branch=BRANCHNAME
else
branch=${CIRCLE_BRANCH}
fi
rm config.toml rm config.toml
apk add curl apk add curl
curl -O https://raw.githubusercontent.com/StefMa/hugo-fresh/master/exampleSite/config.yaml curl https://codeload.github.com/stefma/hugo-fresh/tar.gz/$branch | tar -xz --strip=2 hugo-fresh-$branch/exampleSite/
- run: - run:
name: Replace baseUrl in config name: Replace baseUrl in config
working_directory: my-site working_directory: my-site