From 32cf4b84a1a864d6f5272bd53b438d74bc141339 Mon Sep 17 00:00:00 2001 From: Dan Webb Date: Mon, 4 Apr 2022 10:51:03 +0100 Subject: [PATCH] FEAT: Add release please releaser (#238) Signed-off-by: Dan Webb --- .github/workflows/please-release.yml | 16 ++++++++++++++++ kitchen-azurerm.gemspec | 2 +- lib/kitchen/version.rb | 3 +++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/please-release.yml create mode 100644 lib/kitchen/version.rb diff --git a/.github/workflows/please-release.yml b/.github/workflows/please-release.yml new file mode 100644 index 0000000..516ab84 --- /dev/null +++ b/.github/workflows/please-release.yml @@ -0,0 +1,16 @@ +--- +on: + push: + branches: + - main + +name: release-please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + with: + release-type: ruby + package-name: kitchen-azurerm + version-file: lib/kitchen/version.rb diff --git a/kitchen-azurerm.gemspec b/kitchen-azurerm.gemspec index 1e973e0..261dde0 100644 --- a/kitchen-azurerm.gemspec +++ b/kitchen-azurerm.gemspec @@ -2,7 +2,7 @@ lib = File.expand_path("lib", __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |spec| spec.name = "kitchen-azurerm" - spec.version = "1.10.2" + spec.version = KitchenAzureRM::VERSION spec.authors = ["Stuart Preston"] spec.email = ["stuart@chef.io"] spec.summary = "Test Kitchen driver for Azure Resource Manager." diff --git a/lib/kitchen/version.rb b/lib/kitchen/version.rb new file mode 100644 index 0000000..618cad1 --- /dev/null +++ b/lib/kitchen/version.rb @@ -0,0 +1,3 @@ +module KitchenAzureRM + VERSION = "1.10.2".freeze +end