Use exampleSite content for page building
This commit is contained in:
@@ -33,9 +33,15 @@ jobs:
|
||||
name: Replace default config
|
||||
working_directory: my-site
|
||||
command: |
|
||||
if [[ ${CIRCLE_BRANCH} == "*pull*" ]]; then
|
||||
git fetch origin ${CIRCLE_BRANCH}/head:BRANCHNAME
|
||||
branch=BRANCHNAME
|
||||
else
|
||||
branch=${CIRCLE_BRANCH}
|
||||
fi
|
||||
rm config.toml
|
||||
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:
|
||||
name: Replace baseUrl in config
|
||||
working_directory: my-site
|
||||
|
||||
Reference in New Issue
Block a user