diff options
-rw-r--r-- | .gitlab-ci.yml | 22 | ||||
-rw-r--r-- | build.sh | 6 |
2 files changed, 12 insertions, 16 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7501909..d1d67de 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,12 @@ image: registry.gitlab.com/pages/hugo:latest -#variables: -# GIT_SUBMODULE_STRATEGY: recursive - -#test: -# script: -# - hugo - pages: + before_script: + - build.sh script: - - apk add git - - git clone https://github.com/gohugoio/hugobasicexample.git && mkdir -p hugobasicexample/themes/monopriv - - cp -r archetypes exampleSite images layouts resources static theme.toml hugobasicexample/themes/monopriv/ && ls - - cd hugobasicexample/ - - mv themes/monopriv/exampleSite/config.toml . - - hugo -b https://kskarthik.gitlab.io/monopriv/ - artifacts: + - hugo -b https://kskarthik.gitlab.io/monopriv/ + artifacts: paths: - public - only: - - master + only: + - master diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..9056aa2 --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +apk add git +git clone https://github.com/gohugoio/hugobasicexample.git && mkdir -p hugobasicexample/themes/monopriv +cp -r archetypes exampleSite images layouts resources static theme.toml hugobasicexample/themes/monopriv/ && ls +cd hugobasicexample/ +mv themes/monopriv/exampleSite/config.toml . +hugo -b https://kskarthik.gitlab.io/monopriv/ |