Commit f4f236df authored by René Benner's avatar René Benner

Modify .gitlab-ci.yml

Removing script steps that are no longer necessary
parent 167ebc99
Pipeline #1980 passed with stage
in 15 seconds
......@@ -2,36 +2,21 @@ image: google/cloud-sdk:206.0.0-alpine
# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
# image: registry.gitlab.com/pages/hugo:latest
test-pages:
allow_failure: true
allow_failure: false
image: registry.gitlab.com/pages/hugo:latest
script:
- rm LICENSE
- hugo new site handbook
- mv *.md handbook/content
- cd handbook/
- echo 'theme = "learn"' >> config.toml
- git clone https://github.com/matcornic/hugo-theme-learn.git themes/learn
- hugo -D
except:
- master
pages:
image: registry.gitlab.com/pages/hugo:latest
allow_failure: true
allow_failure: false
script:
- rm LICENSE
- hugo new site handbook
- mv *.md handbook/content
- cd handbook/
- mv content/README.md content/_index.md
- echo 'baseURL = "http://olindata.pages.olindata.com/employee-handbook/"' > config.toml
- echo 'languageCode = "en-us"' >> config.toml
- echo 'title = "My New Hugo Site"' >> config.toml
- echo 'theme = "learn"' >> config.toml
- git clone https://github.com/matcornic/hugo-theme-learn.git themes/learn
- hugo -D
- mv * ../
artifacts:
paths:
- public
only:
- master
\ No newline at end of file
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment