Commit 92b4dd88 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

chore: ci/cd improvement

parent fb7ffc76
......@@ -54,6 +54,7 @@ auto-tag:
- chmod 644 ~/.ssh/known_hosts
VERSION_FILE: "lib/jekyll-theme-lcsb-default.rb"
REPOSITORY: "ssh://"
# Make sure that it is on latest, otherwise exit. THIS IS A WORKAROUND, AS HAVING BOTH ONLY AND RULES IS NOT POSSIBLE
......@@ -71,8 +72,11 @@ auto-tag:
# Create the tag
- git tag -a $VERSION -m $VERSION
# Add SSH remote for accessing the repository
- git remote add upstream $REPOSITORY
# Publish the tag
- git push origin $VERSION
- git push upstream $VERSION
# This will push the gem to ruby-gems when the repository has been tagged
# frozen_string_literal: true
# Note: keep the format of NUMBER.NUMBER.NUMBER (where NUMBER is [0-9]+)
# Note: keep the format of NUMBER.NUMBER.NUMBER (where NUMBER is [0-9]+);
# Otherwise Gitlab-CI could fail to detect the version (see .gitlab-ci.yml) and auto-tag the job
module Theme
VERSION = "0.3.17"
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