azure-pipelines.yaml in SaudeiD-0.2.4 vs azure-pipelines.yaml in SaudeiD-0.2.5

- old
+ new

@@ -1,7 +1,8 @@ trigger: - main +- feature/* pool: vmImage: 'ubuntu-latest' steps: @@ -18,16 +19,15 @@ gem install bundler bundle install --retry=3 --jobs=4 displayName: 'Installing Bundler and Gems' - script: | - mkdir -p $HOME/.gem - touch $HOME/.gem/credentials - chmod 0600 $HOME/.gem/credentials - echo '---\n:rubygems_api_key: rubygems_a9c2d2bd97f996d6c2819d4bc61dd2dcdd474ff09034d60c' >> $HOME/.gem/credentials gem build SaudeiD.gemspec - displayName: Build Gem - -- script: | - GEM_VERSION=$(cat lib/SaudeiD/version.rb | grep -P '\d\.\d\.\d' -o) + GEM_VERSION=$(ruby ./lib/SaudeiD/version.rb SaudeiD::VERSION) + echo $GEM_VERSION gem push SaudeiD-$GEM_VERSION.gem - displayName: Publish Gem + displayName: Build Gem and Publish Gem +# mkdir -p $HOME/.gem/credentials +# touch $HOME/.gem/credentials/credentials +# sudo chmod 777 $HOME/.gem/credentials/credentials +# echo "---\n:rubygems_api_key: rubygems_5d14eea5b276056605aabe0e067a309de7cfe7261e11848a\n" > $HOME/.gem/credentials/credentials +# cat $HOME/.gem/credentials/credentials