Skip to content
Snippets Groups Projects
Commit ccfb67c6 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

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

parent ebceebc8
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment