Skip to content
Snippets Groups Projects

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

Merged Jacek Lebioda requested to merge 10-use-rules-instead-of-only-in-gitlab-ci into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -20,8 +20,8 @@ build the website:
pages:
stage: deploy
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == "master"
script:
- mv test public
- echo "Your website is available at $CI_PAGES_URL"
Loading