Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Miroslav Kratochvil
jekyll-theme-lcsb-default
Commits
ccfb67c6
Commit
ccfb67c6
authored
Feb 28, 2020
by
Jacek Lebioda
Browse files
feat: use rules instead of only in gitlab-ci script
parent
ebceebc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ccfb67c6
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment