Skip to content
Snippets Groups Projects
Commit cd62003c authored by Hadrien Froger's avatar Hadrien Froger
Browse files

ci: refactor

parent 92191cff
Branches
Tags v0.1.4
No related merge requests found
Pipeline #28726 failed
stages:
- build
- publish
build_gem:
image: ruby
stage: build
script:
- gem build decidim-theme.gemspec
artifacts:
paths:
- decidim-theme-*.gem
only:
- tags
publish_gem:
image: ruby
stage: publish
script:
- mkdir ~/.gem
- echo "---" > ~/.gem/credentials
- echo "---" > .credentials
- |
echo ":rubygems_api_key: '${RUBYGEMS_API_KEY}'" >> ~/.gem/credentials
- chmod 0600 ~/.gem/credentials
- gem push decidim-theme-*.gem
dependencies:
- build_gem
echo ":ci_rubygems_api_key: $GEM_HOST_API_KEY" >> .credentials
- chmod 0600 .credentials
- gem build decidim-theme.gemspec
- gem push decidim-theme-*.gem -k ci_rubygems_api_key --config-file .credentials
only:
- tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment