From 5ededd5046ab203ffa01dfaf662af0124b9b23f8 Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Wed, 22 Nov 2023 17:11:16 -0600 Subject: [PATCH 1/7] chore: Experiment with GCP Release Please An experiment to replace toys. https://github.com/google-github-actions/release-please-action/tree/main --- .github/workflows/release-please.yml | 19 +++ .release-please-manifest.json | 240 +++++++++++++++++++++++++++ 2 files changed, 259 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-manifest.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 000000000..200bf6c93 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,19 @@ +--- +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + with: + command: manifest diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 000000000..dcaa6de07 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,240 @@ +{ + "release-type": "ruby", + "packages": [ + { + "instrumentation/gruf": { + "version-file": "lib/instrumentation/gruf/version.rb" + } + }, + { + "instrumentation/grape": { + "version-file": "lib/instrumentation/grape/version.rb" + } + }, + { + "instrumentation/racecar": { + "version-file": "lib/instrumentation/racecar/version.rb" + } + }, + { + "instrumentation/rake": { + "version-file": "lib/instrumentation/rake/version.rb" + } + }, + { + "instrumentation/rdkafka": { + "version-file": "lib/instrumentation/rdkafka/version.rb" + } + }, + { + "instrumentation/trilogy": { + "version-file": "lib/instrumentation/trilogy/version.rb" + } + }, + { + "instrumentation/active_support": { + "version-file": "lib/instrumentation/active_support/version.rb" + } + }, + { + "instrumentation/action_view": { + "version-file": "lib/instrumentation/action_view/version.rb" + } + }, + { + "instrumentation/action_pack": { + "version-file": "lib/instrumentation/action_pack/version.rb" + } + }, + { + "instrumentation/active_job": { + "version-file": "lib/instrumentation/active_job/version.rb" + } + }, + { + "instrumentation/resque": { + "version-file": "lib/instrumentation/resque/version.rb" + } + }, + { + "instrumentation/bunny": { + "version-file": "lib/instrumentation/bunny/version.rb" + } + }, + { + "instrumentation/base": { + "version-file": "lib/opentelemetry/instrumentation/version.rb" + } + }, + { + "instrumentation/active_record": { + "version-file": "lib/instrumentation/active_record/version.rb" + } + }, + { + "instrumentation/aws_sdk": { + "version-file": "lib/instrumentation/aws_sdk/version.rb" + } + }, + { + "instrumentation/lmdb": { + "version-file": "lib/instrumentation/lmdb/version.rb" + } + }, + { + "instrumentation/http": { + "version-file": "lib/instrumentation/http/version.rb" + } + }, + { + "instrumentation/graphql": { + "version-file": "lib/instrumentation/graphql/version.rb" + } + }, + { + "instrumentation/http_client": { + "version-file": "lib/instrumentation/http_client/version.rb" + } + }, + { + "instrumentation/httpx": { + "version-file": "lib/instrumentation/httpx/version.rb" + } + }, + { + "instrumentation/koala": { + "version-file": "lib/instrumentation/koala/version.rb" + } + }, + { + "instrumentation/active_model_serializers": { + "version-file": "lib/instrumentation/active_model_serializers/version.rb" + } + }, + { + "instrumentation/concurrent_ruby": { + "version-file": "lib/instrumentation/concurrent_ruby/version.rb" + } + }, + { + "instrumentation/dalli": { + "version-file": "lib/instrumentation/dalli/version.rb" + } + }, + { + "instrumentation/delayed_job": { + "version-file": "lib/instrumentation/delayed_job/version.rb" + } + }, + { + "instrumentation/ethon": { + "version-file": "lib/instrumentation/ethon/version.rb" + } + }, + { + "instrumentation/excon": { + "version-file": "lib/instrumentation/excon/version.rb" + } + }, + { + "instrumentation/faraday": { + "version-file": "lib/instrumentation/faraday/version.rb" + } + }, + { + "instrumentation/mongo": { + "version-file": "lib/instrumentation/mongo/version.rb" + } + }, + { + "instrumentation/mysql2": { + "version-file": "lib/instrumentation/mysql2/version.rb" + } + }, + { + "instrumentation/net_http": { + "version-file": "lib/opentelemetry/instrumentation/net/http/version.rb" + } + }, + { + "instrumentation/pg": { + "version-file": "lib/instrumentation/pg/version.rb" + } + }, + { + "instrumentation/que": { + "version-file": "lib/instrumentation/que/version.rb" + } + }, + { + "instrumentation/rack": { + "version-file": "lib/instrumentation/rack/version.rb" + } + }, + { + "instrumentation/rails": { + "version-file": "lib/instrumentation/rails/version.rb" + } + }, + { + "instrumentation/redis": { + "version-file": "lib/instrumentation/redis/version.rb" + } + }, + { + "instrumentation/restclient": { + "version-file": "lib/instrumentation/restclient/version.rb" + } + }, + { + "instrumentation/rspec": { + "version-file": "lib/instrumentation/rspec/version.rb" + } + }, + { + "instrumentation/ruby_kafka": { + "version-file": "lib/instrumentation/ruby_kafka/version.rb" + } + }, + { + "instrumentation/sidekiq": { + "version-file": "lib/instrumentation/sidekiq/version.rb" + } + }, + { + "instrumentation/sinatra": { + "version-file": "lib/instrumentation/sinatra/version.rb" + } + }, + { + "instrumentation/all": { + "version-file": "lib/instrumentation/all/version.rb" + } + }, + { + "propagator/ottrace": { + "version-file": "lib/propagator/ottrace/version.rb" + } + }, + { + "propagator/xray": { + "version-file": "lib/propagator/xray/version.rb" + } + }, + { + "resources/azure": { + "version-file": "lib/opentelemetry/resource/detector/azure/version.rb" + } + }, + { + "resources/container": { + "version-file": "lib/opentelemetry/resource/detector/container/version.rb" + } + }, + { + "resources/google_cloud_platform": { + "version-file": "lib/opentelemetry/resource/detector/google_cloud_platform/version.rb" + } + } + ] +} From 2b31bfc526a6c3b6d8326e6ac48d06f61cafcea9 Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Thu, 21 Dec 2023 16:20:11 -0600 Subject: [PATCH 2/7] squash: fixes from PR feedback --- .release-please-manifest.json | 285 ++++++-------------------------- release-please-config.json | 297 ++++++++++++++++++++++++++++++++++ 2 files changed, 344 insertions(+), 238 deletions(-) create mode 100644 release-please-config.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json index dcaa6de07..7adc63ff6 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,240 +1,49 @@ { - "release-type": "ruby", - "packages": [ - { - "instrumentation/gruf": { - "version-file": "lib/instrumentation/gruf/version.rb" - } - }, - { - "instrumentation/grape": { - "version-file": "lib/instrumentation/grape/version.rb" - } - }, - { - "instrumentation/racecar": { - "version-file": "lib/instrumentation/racecar/version.rb" - } - }, - { - "instrumentation/rake": { - "version-file": "lib/instrumentation/rake/version.rb" - } - }, - { - "instrumentation/rdkafka": { - "version-file": "lib/instrumentation/rdkafka/version.rb" - } - }, - { - "instrumentation/trilogy": { - "version-file": "lib/instrumentation/trilogy/version.rb" - } - }, - { - "instrumentation/active_support": { - "version-file": "lib/instrumentation/active_support/version.rb" - } - }, - { - "instrumentation/action_view": { - "version-file": "lib/instrumentation/action_view/version.rb" - } - }, - { - "instrumentation/action_pack": { - "version-file": "lib/instrumentation/action_pack/version.rb" - } - }, - { - "instrumentation/active_job": { - "version-file": "lib/instrumentation/active_job/version.rb" - } - }, - { - "instrumentation/resque": { - "version-file": "lib/instrumentation/resque/version.rb" - } - }, - { - "instrumentation/bunny": { - "version-file": "lib/instrumentation/bunny/version.rb" - } - }, - { - "instrumentation/base": { - "version-file": "lib/opentelemetry/instrumentation/version.rb" - } - }, - { - "instrumentation/active_record": { - "version-file": "lib/instrumentation/active_record/version.rb" - } - }, - { - "instrumentation/aws_sdk": { - "version-file": "lib/instrumentation/aws_sdk/version.rb" - } - }, - { - "instrumentation/lmdb": { - "version-file": "lib/instrumentation/lmdb/version.rb" - } - }, - { - "instrumentation/http": { - "version-file": "lib/instrumentation/http/version.rb" - } - }, - { - "instrumentation/graphql": { - "version-file": "lib/instrumentation/graphql/version.rb" - } - }, - { - "instrumentation/http_client": { - "version-file": "lib/instrumentation/http_client/version.rb" - } - }, - { - "instrumentation/httpx": { - "version-file": "lib/instrumentation/httpx/version.rb" - } - }, - { - "instrumentation/koala": { - "version-file": "lib/instrumentation/koala/version.rb" - } - }, - { - "instrumentation/active_model_serializers": { - "version-file": "lib/instrumentation/active_model_serializers/version.rb" - } - }, - { - "instrumentation/concurrent_ruby": { - "version-file": "lib/instrumentation/concurrent_ruby/version.rb" - } - }, - { - "instrumentation/dalli": { - "version-file": "lib/instrumentation/dalli/version.rb" - } - }, - { - "instrumentation/delayed_job": { - "version-file": "lib/instrumentation/delayed_job/version.rb" - } - }, - { - "instrumentation/ethon": { - "version-file": "lib/instrumentation/ethon/version.rb" - } - }, - { - "instrumentation/excon": { - "version-file": "lib/instrumentation/excon/version.rb" - } - }, - { - "instrumentation/faraday": { - "version-file": "lib/instrumentation/faraday/version.rb" - } - }, - { - "instrumentation/mongo": { - "version-file": "lib/instrumentation/mongo/version.rb" - } - }, - { - "instrumentation/mysql2": { - "version-file": "lib/instrumentation/mysql2/version.rb" - } - }, - { - "instrumentation/net_http": { - "version-file": "lib/opentelemetry/instrumentation/net/http/version.rb" - } - }, - { - "instrumentation/pg": { - "version-file": "lib/instrumentation/pg/version.rb" - } - }, - { - "instrumentation/que": { - "version-file": "lib/instrumentation/que/version.rb" - } - }, - { - "instrumentation/rack": { - "version-file": "lib/instrumentation/rack/version.rb" - } - }, - { - "instrumentation/rails": { - "version-file": "lib/instrumentation/rails/version.rb" - } - }, - { - "instrumentation/redis": { - "version-file": "lib/instrumentation/redis/version.rb" - } - }, - { - "instrumentation/restclient": { - "version-file": "lib/instrumentation/restclient/version.rb" - } - }, - { - "instrumentation/rspec": { - "version-file": "lib/instrumentation/rspec/version.rb" - } - }, - { - "instrumentation/ruby_kafka": { - "version-file": "lib/instrumentation/ruby_kafka/version.rb" - } - }, - { - "instrumentation/sidekiq": { - "version-file": "lib/instrumentation/sidekiq/version.rb" - } - }, - { - "instrumentation/sinatra": { - "version-file": "lib/instrumentation/sinatra/version.rb" - } - }, - { - "instrumentation/all": { - "version-file": "lib/instrumentation/all/version.rb" - } - }, - { - "propagator/ottrace": { - "version-file": "lib/propagator/ottrace/version.rb" - } - }, - { - "propagator/xray": { - "version-file": "lib/propagator/xray/version.rb" - } - }, - { - "resources/azure": { - "version-file": "lib/opentelemetry/resource/detector/azure/version.rb" - } - }, - { - "resources/container": { - "version-file": "lib/opentelemetry/resource/detector/container/version.rb" - } - }, - { - "resources/google_cloud_platform": { - "version-file": "lib/opentelemetry/resource/detector/google_cloud_platform/version.rb" - } - } - ] + "instrumentation/gruf": "0.1.1", + "instrumentation/grape": "0.1.6", + "instrumentation/racecar": "0.3.0", + "instrumentation/rake": "0.2.1", + "instrumentation/rdkafka": "0.4.2", + "instrumentation/trilogy": "0.57.0", + "instrumentation/active_support": "0.5.1", + "instrumentation/action_view": "0.7.0", + "instrumentation/action_pack": "0.8.0", + "instrumentation/active_job": "0.7.1", + "instrumentation/resque": "0.5.0", + "instrumentation/bunny": "0.21.1", + "instrumentation/base": "0.22.3", + "instrumentation/active_record": "0.7.0", + "instrumentation/aws_sdk": "0.5.0", + "instrumentation/lmdb": "0.22.1", + "instrumentation/http": "0.23.2", + "instrumentation/graphql": "0.27.0", + "instrumentation/http_client": "0.22.3", + "instrumentation/httpx": "0.1.1", + "instrumentation/koala": "0.20.2", + "instrumentation/active_model_serializers": "0.20.1", + "instrumentation/concurrent_ruby": "0.21.2", + "instrumentation/dalli": "0.25.0", + "instrumentation/delayed_job": "0.22.1", + "instrumentation/ethon": "0.21.3", + "instrumentation/excon": "0.22.0", + "instrumentation/faraday": "0.23.4", + "instrumentation/mongo": "0.22.2", + "instrumentation/mysql2": "0.25.0", + "instrumentation/net_http": "0.22.4", + "instrumentation/pg": "0.26.1", + "instrumentation/que": "0.7.1", + "instrumentation/rack": "0.23.5", + "instrumentation/rails": "0.29.1", + "instrumentation/redis": "0.25.3", + "instrumentation/restclient": "0.22.3", + "instrumentation/rspec": "0.3.2", + "instrumentation/ruby_kafka": "0.21.0", + "instrumentation/sidekiq": "0.25.0", + "instrumentation/sinatra": "0.23.2", + "instrumentation/all": "0.54.0", + "propagator/ottrace": "0.21.2", + "propagator/xray": "0.22.1", + "resources/azure": "0.1.0", + "resources/container": "0.1.1", + "resources/google_cloud_platform": "0.1.0" } diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 000000000..9ca7de4c2 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,297 @@ +{ + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "draft": false, + "include-component-in-tag": true, + "include-v-in-tag": true, + "prerelease": false, + "release-type": "ruby", + "skip-github-release": false, + "separate-pull-requests": false, + "sequential-calls": true, + "tag-separator": " ", + "packages": [ + { + "instrumentation/gruf": { + "package-name": "opentelemetry-instrumentation-gruf", + "version-file": "lib/instrumentation/gruf/version.rb" + } + }, + { + "instrumentation/grape": { + "package-name": "opentelemetry-instrumentation-grape", + "version-file": "lib/instrumentation/grape/version.rb" + } + }, + { + "instrumentation/racecar": { + "package-name": "opentelemetry-instrumentation-racecar", + "version-file": "lib/instrumentation/racecar/version.rb" + } + }, + { + "instrumentation/rake": { + "package-name": "opentelemetry-instrumentation-rake", + "version-file": "lib/instrumentation/rake/version.rb" + } + }, + { + "instrumentation/rdkafka": { + "package-name": "opentelemetry-instrumentation-rdkafka", + "version-file": "lib/instrumentation/rdkafka/version.rb" + } + }, + { + "instrumentation/trilogy": { + "package-name": "opentelemetry-instrumentation-trilogy", + "version-file": "lib/instrumentation/trilogy/version.rb" + } + }, + { + "instrumentation/active_support": { + "package-name": "opentelemetry-instrumentation-active_support", + "version-file": "lib/instrumentation/active_support/version.rb" + } + }, + { + "instrumentation/action_view": { + "package-name": "opentelemetry-instrumentation-action_view", + "version-file": "lib/instrumentation/action_view/version.rb" + } + }, + { + "instrumentation/action_pack": { + "package-name": "opentelemetry-instrumentation-action_pack", + "version-file": "lib/instrumentation/action_pack/version.rb" + } + }, + { + "instrumentation/active_job": { + "package-name": "opentelemetry-instrumentation-active_job", + "version-file": "lib/instrumentation/active_job/version.rb" + } + }, + { + "instrumentation/resque": { + "package-name": "opentelemetry-instrumentation-resque", + "version-file": "lib/instrumentation/resque/version.rb" + } + }, + { + "instrumentation/bunny": { + "package-name": "opentelemetry-instrumentation-bunny", + "version-file": "lib/instrumentation/bunny/version.rb" + } + }, + { + "instrumentation/base": { + "package-name": "opentelemetry-instrumentation-base", + "version-file": "lib/opentelemetry/instrumentation/version.rb" + } + }, + { + "instrumentation/active_record": { + "package-name": "opentelemetry-instrumentation-active_record", + "version-file": "lib/instrumentation/active_record/version.rb" + } + }, + { + "instrumentation/aws_sdk": { + "package-name": "opentelemetry-instrumentation-aws_sdk", + "version-file": "lib/instrumentation/aws_sdk/version.rb" + } + }, + { + "instrumentation/lmdb": { + "package-name": "opentelemetry-instrumentation-lmdb", + "version-file": "lib/instrumentation/lmdb/version.rb" + } + }, + { + "instrumentation/http": { + "package-name": "opentelemetry-instrumentation-http", + "version-file": "lib/instrumentation/http/version.rb" + } + }, + { + "instrumentation/graphql": { + "package-name": "opentelemetry-instrumentation-graphql", + "version-file": "lib/instrumentation/graphql/version.rb" + } + }, + { + "instrumentation/http_client": { + "package-name": "opentelemetry-instrumentation-http_client", + "version-file": "lib/instrumentation/http_client/version.rb" + } + }, + { + "instrumentation/httpx": { + "package-name": "opentelemetry-instrumentation-httpx", + "version-file": "lib/instrumentation/httpx/version.rb" + } + }, + { + "instrumentation/koala": { + "package-name": "opentelemetry-instrumentation-koala", + "version-file": "lib/instrumentation/koala/version.rb" + } + }, + { + "instrumentation/active_model_serializers": { + "package-name": "opentelemetry-instrumentation-active_model_serializers", + "version-file": "lib/instrumentation/active_model_serializers/version.rb" + } + }, + { + "instrumentation/concurrent_ruby": { + "package-name": "opentelemetry-instrumentation-concurrent_ruby", + "version-file": "lib/instrumentation/concurrent_ruby/version.rb" + } + }, + { + "instrumentation/dalli": { + "package-name": "opentelemetry-instrumentation-dalli", + "version-file": "lib/instrumentation/dalli/version.rb" + } + }, + { + "instrumentation/delayed_job": { + "package-name": "opentelemetry-instrumentation-delayed_job", + "version-file": "lib/instrumentation/delayed_job/version.rb" + } + }, + { + "instrumentation/ethon": { + "package-name": "opentelemetry-instrumentation-ethon", + "version-file": "lib/instrumentation/ethon/version.rb" + } + }, + { + "instrumentation/excon": { + "package-name": "opentelemetry-instrumentation-excon", + "version-file": "lib/instrumentation/excon/version.rb" + } + }, + { + "instrumentation/faraday": { + "package-name": "opentelemetry-instrumentation-faraday", + "version-file": "lib/instrumentation/faraday/version.rb" + } + }, + { + "instrumentation/mongo": { + "package-name": "opentelemetry-instrumentation-mongo", + "version-file": "lib/instrumentation/mongo/version.rb" + } + }, + { + "instrumentation/mysql2": { + "package-name": "opentelemetry-instrumentation-mysql2", + "version-file": "lib/instrumentation/mysql2/version.rb" + } + }, + { + "instrumentation/net_http": { + "package-name": "opentelemetry-instrumentation-net_http", + "version-file": "lib/opentelemetry/instrumentation/net/http/version.rb" + } + }, + { + "instrumentation/pg": { + "package-name": "opentelemetry-instrumentation-pg", + "version-file": "lib/instrumentation/pg/version.rb" + } + }, + { + "instrumentation/que": { + "package-name": "opentelemetry-instrumentation-que", + "version-file": "lib/instrumentation/que/version.rb" + } + }, + { + "instrumentation/rack": { + "package-name": "opentelemetry-instrumentation-rack", + "version-file": "lib/instrumentation/rack/version.rb" + } + }, + { + "instrumentation/rails": { + "package-name": "opentelemetry-instrumentation-rails", + "version-file": "lib/instrumentation/rails/version.rb" + } + }, + { + "instrumentation/redis": { + "package-name": "opentelemetry-instrumentation-redis", + "version-file": "lib/instrumentation/redis/version.rb" + } + }, + { + "instrumentation/restclient": { + "package-name": "opentelemetry-instrumentation-restclient", + "version-file": "lib/instrumentation/restclient/version.rb" + } + }, + { + "instrumentation/rspec": { + "package-name": "opentelemetry-instrumentation-rspec", + "version-file": "lib/instrumentation/rspec/version.rb" + } + }, + { + "instrumentation/ruby_kafka": { + "package-name": "opentelemetry-instrumentation-ruby_kafka", + "version-file": "lib/instrumentation/ruby_kafka/version.rb" + } + }, + { + "instrumentation/sidekiq": { + "package-name": "opentelemetry-instrumentation-sidekiq", + "version-file": "lib/instrumentation/sidekiq/version.rb" + } + }, + { + "instrumentation/sinatra": { + "package-name": "opentelemetry-instrumentation-sinatra", + "version-file": "lib/instrumentation/sinatra/version.rb" + } + }, + { + "instrumentation/all": { + "package-name": "opentelemetry-instrumentation-all", + "version-file": "lib/instrumentation/all/version.rb" + } + }, + { + "propagator/ottrace": { + "package-name": "opentelemetry-propagator-ottrace", + "version-file": "lib/propagator/ottrace/version.rb" + } + }, + { + "propagator/xray": { + "package-name": "opentelemetry-propagator-xray", + "version-file": "lib/propagator/xray/version.rb" + } + }, + { + "resources/azure": { + "package-name": "opentelemetry-resources-azure", + "version-file": "lib/opentelemetry/resource/detector/azure/version.rb" + } + }, + { + "resources/container": { + "package-name": "opentelemetry-resources-container", + "version-file": "lib/opentelemetry/resource/detector/container/version.rb" + } + }, + { + "resources/google_cloud_platform": { + "package-name": "opentelemetry-resources-google_cloud_platform", + "version-file": "lib/opentelemetry/resource/detector/google_cloud_platform/version.rb" + } + } + ] +} From c1f6b9adc754d906ea5edc7fba80f8dd905c187e Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Thu, 21 Dec 2023 16:31:54 -0600 Subject: [PATCH 3/7] squash: Give otel bot the credit --- release-please-config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release-please-config.json b/release-please-config.json index 9ca7de4c2..0932de248 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -6,9 +6,10 @@ "include-v-in-tag": true, "prerelease": false, "release-type": "ruby", - "skip-github-release": false, "separate-pull-requests": false, "sequential-calls": true, + "signoff": "OpenTelemetry Bot ", + "skip-github-release": false, "tag-separator": " ", "packages": [ { From 1bf8eef0541b5cf4b5d80de9bed0a9928f857875 Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Thu, 21 Dec 2023 16:43:14 -0600 Subject: [PATCH 4/7] squash: pin to v4.0.2 --- .github/workflows/release-please.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 200bf6c93..0ac558c50 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -3,6 +3,7 @@ on: push: branches: - main + workflow_dispatch: permissions: contents: write @@ -14,6 +15,6 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: google-github-actions/release-please-action@cc61a07e2da466bebbc19b3a7dd01d6aecb20d1e with: command: manifest From 681b9bfac10881fa4b8db8f73aefc713892f3df3 Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Thu, 21 Dec 2023 23:27:56 -0600 Subject: [PATCH 5/7] squash: add steps to execute the release --- .github/workflows/release-please.yaml | 62 +++++++++++++++++++++++++++ .github/workflows/release-please.yml | 20 --------- 2 files changed, 62 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/release-please.yaml delete mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml new file mode 100644 index 000000000..6ef08bdc7 --- /dev/null +++ b/.github/workflows/release-please.yaml @@ -0,0 +1,62 @@ +--- +name: Release Please + +on: + workflow_dispatch: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + release: + name: Process Release + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@cc61a07e2da466bebbc19b3a7dd01d6aecb20d1e + id: release + with: + command: manifest + outputs: + releases_created: ${{ steps.release.outputs.releases_created }} + paths_released: ${{ steps.release.outputs.paths_released }} + + publish: + needs: release + name: Publish Gems + runs-on: ubuntu-latest + if: ${{ needs.release.outputs.releases_created }} + + strategy: + fail-fast: false + matrix: + path: ${{ fromJson(needs.release.outputs.paths_released) }} + + steps: + - name: Checkout repository + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + + - name: Setup Ruby + uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 + with: + ruby-version: 3.0.0 + + - name: Configure RubyGems + env: + GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}" + + run: | + mkdir -p $HOME/.gem + touch $HOME/.gem/credentials + chmod 0600 $HOME/.gem/credentials + printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials + + - name: Release Gem + working-directory: ${{ matrix.path }} + run: | + bundle install + bundle exec rake --verbose build + bundle exec rake --verbose release:rubygem_push diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml deleted file mode 100644 index 0ac558c50..000000000 --- a/.github/workflows/release-please.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -on: - push: - branches: - - main - workflow_dispatch: - -permissions: - contents: write - pull-requests: write - -name: release-please - -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: google-github-actions/release-please-action@cc61a07e2da466bebbc19b3a7dd01d6aecb20d1e - with: - command: manifest From c843f8cc88f058aa46d043a78ac409e80617b422 Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Thu, 21 Dec 2023 23:32:27 -0600 Subject: [PATCH 6/7] squash: fix output --- .github/workflows/release-please.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 6ef08bdc7..3e4d18120 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -58,5 +58,5 @@ jobs: working-directory: ${{ matrix.path }} run: | bundle install - bundle exec rake --verbose build - bundle exec rake --verbose release:rubygem_push + bundle exec rake --trace build + bundle exec rake --trace release:rubygem_push From 864482f0fe82a5e9d79e5568425d7cc1a73240e5 Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Fri, 22 Dec 2023 09:31:28 -0600 Subject: [PATCH 7/7] squash: release one at a time --- .github/workflows/release-please.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 3e4d18120..deecbdfba 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -34,6 +34,7 @@ jobs: fail-fast: false matrix: path: ${{ fromJson(needs.release.outputs.paths_released) }} + max-parallel: 1 steps: - name: Checkout repository