Verified Commit 6c3d39c9 authored by Santhosh Thottingal's avatar Santhosh Thottingal

Merge branch 'master' of gitlab.com:smc/fonts/manjari

parents 9956a065 9d768e58
Pipeline #173248596 passed with stages
in 10 minutes and 45 seconds
......@@ -28,6 +28,7 @@ build-tag:
- make ttf otf webfonts
- sh tools/artifacts.sh
artifacts:
expire_in: 1000 yrs
paths:
- build/
only:
......@@ -42,6 +43,15 @@ test:
script:
- make test
create-gitlab-release:
image: "ruby:2.5-alpine"
stage: release
script:
- gem install --no-document gitlab
- ruby release.rb
only:
- tags
release:
stage: release
trigger: smc/smc.org.in
......
# frozen_string_literal: true
require 'gitlab'
API_URL = ENV['CI_API_V4_URL']
TOKEN = ENV['GITLAB_API_TOKEN']
PROJECT_NAME = ENV['CI_PROJECT_NAME']
PROJECT_ID = ENV['CI_PROJECT_ID']
VERSION = ENV['CI_COMMIT_TAG']
client = Gitlab.client(endpoint: API_URL, private_token: TOKEN)
assets_details = Dir['build/*'].map do |item|
{
name: File.basename(item),
url: "#{API_URL}/projects/#{PROJECT_ID}/jobs/artifacts/#{VERSION}/raw/build/#{File.basename(item)}?job=build-tag"
}
end
release_details = {
name: VERSION,
tag_name: VERSION,
description: "Release #{VERSION} of #{PROJECT_NAME}",
assets: {
links: assets_details
}
}
client.create_project_release(PROJECT_ID, release_details)
......@@ -9,7 +9,7 @@ cp *.otf otf
cp *.woff woff
cp *.woff2 woff2
tar cvf ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz *.conf ttf otf
tar czvf ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz *.conf ttf otf
sha256sum ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz > ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz.sha256
md5sum ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz > ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz.md5
zip -j ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.zip otf/*
......
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