.circleci/config.yml in qiita_trend-0.5.4 vs .circleci/config.yml in qiita_trend-0.5.5

- old
+ new

@@ -1,13 +1,13 @@ version: 2.1 orbs: - ruby: circleci/ruby@1.1.2 + ruby: circleci/ruby@2.1.0 slack: circleci/slack@3.4.2 executors: base: docker: - - image: cimg/ruby:2.7.0 + - image: cimg/ruby:3.1.0 auth: username: dodonki1223 password: $DOCKERHUB_PASSWORD environment: # Bundlerのパス設定が書き換えられ`vendor/bundle`ではなくて`/usr/local/bundle`を参照してしまい`bundle exec`でエラーになる @@ -60,11 +60,13 @@ command: | ssh-keyscan github.com >> ~/.ssh/known_hosts - run: name: Deploy RubyGems command: | - curl -u dodonki1223:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials + mkdir -p ~/.gem + touch ~/.gem/credentials chmod 0600 ~/.gem/credentials + printf -- "---\n:rubygems_api_key: ${RUBYGEMS_AUTH_TOKEN}\n" > ~/.gem/credentials git config user.name dodonki1223 git config user.email $RUBYGEMS_EMAIL bundle exec rake build bundle exec rake release