Add auto-releasing to the gitlab ci config.
This commit is contained in:
parent
780310c537
commit
c093a798c3
1 changed files with 17 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
||||||
image: ruby:latest
|
image: ruby:latest
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- release
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update && apt-get install wabt && rm -rf /var/cache/apt
|
- apt-get update && apt-get install wabt && rm -rf /var/cache/apt
|
||||||
- bundle install
|
- bundle install
|
||||||
|
@ -13,3 +17,16 @@ rubocop:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- bundle exec rspec
|
- bundle exec rspec
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: release
|
||||||
|
only:
|
||||||
|
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
|
||||||
|
except:
|
||||||
|
- branches
|
||||||
|
script:
|
||||||
|
- gem build
|
||||||
|
artifacts:
|
||||||
|
name: "wag-$CI_COMMIT_TAG.gem"
|
||||||
|
paths:
|
||||||
|
- wag-*.gem
|
||||||
|
|
Loading…
Reference in a new issue