Commit 18998fe7 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Merge branch '30-use-rules-instead-of-only' into 'latest'

feat: use rules instead of only in gitlab-ci script

Closes #30

See merge request core-services/jekyll-theme-lcsb-default!13
parents ebceebc8 995090c0
......@@ -25,8 +25,9 @@ test:
# This will actually deploy the web site when pushing to master
pages:
stage: deploy
only:
- master
rules:
# Run only on branch named "latest"
- if: $CI_COMMIT_BRANCH == "latest"
script:
- mv build public
- echo "Your website is available at $CI_PAGES_URL"
......@@ -41,5 +42,7 @@ release:
script:
- mkdir -p ~/.gem && echo "$API_KEY_BASE64" | base64 --decode > ~/.gem/credentials && chmod 0600 ~/.gem/credentials
- gem build jekyll-theme-lcsb-default.gemspec && gem push jekyll-theme-lcsb-default*.gem
only:
- tags
rules:
# Run only on master...
- if: $CI_COMMIT_TAG
......@@ -8,8 +8,7 @@ group :jekyll_plugins do
"~> 0.6"
gem "jekyll-paginate-v2",
"~> 2",
:git => "https://github.com/sverrirs/jekyll-paginate-v2.git"
"~> 3"
gem 'jekyll-theme-lcsb-frozen-components',
'~> 0.0.1',
......
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