Skip to content

Commit

Permalink
fix: release please configs (#69)
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <[email protected]>
  • Loading branch information
Stromweld authored Jun 27, 2024
1 parent 7ceca30 commit fa27fb1
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 32 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/please-release.yml

This file was deleted.

31 changes: 23 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
---
name: Publish
name: release-please

'on':
release:
types: [published]
"on":
push:
branches: [main]

jobs:
build:
release-please:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and publish gem
uses: jstastny/publish-gem-to-github@master
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.PORTER_GITHUB_TOKEN }}

- name: Checkout
uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

- name: Build and publish to GitHub Package
uses: actionshub/publish-gem-to-github@main
if: ${{ steps.release.outputs.release_created }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ secrets.OWNER }}

- name: Build and publish to RubyGems
uses: actionshub/publish-gem-to-rubygems@main
if: ${{ steps.release.outputs.release_created }}
with:
token: ${{ secrets.RUBYGEMS_API_KEY }}
3 changes: 2 additions & 1 deletion .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
default: true
MD004: false
MD012: false
MD013: false
MD024: false
MD036: false
1 change: 0 additions & 1 deletion .mdlrc

This file was deleted.

3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "3.3.2"
}
18 changes: 17 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
# frozen_string_literal: true

source "https://rubygems.org"
gemspec

gemspec

group :test do
gem "rake"
gem "kitchen-inspec"
gem "rspec", "~> 3.2"
gem "webmock"
end

group :debug do
gem "pry"
end

group :chefstyle do
gem "chefstyle"
end
5 changes: 0 additions & 5 deletions kitchen-vra.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,4 @@ Gem::Specification.new do |spec|
spec.add_dependency "highline"
spec.add_dependency "rack", ">= 1.6", "< 4.0"
spec.add_dependency "ffi-yajl", ">= 2.2.3", "< 3.1.0"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.2"
spec.add_development_dependency "simplecov", "~> 0.10"
spec.add_development_dependency "webmock", "~> 3.14"
spec.add_development_dependency "chefstyle", "~> 2.2.1"
end
12 changes: 12 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"packages": {
".": {
"package-name": "kitchen-vra",
"changelog-path": "CHANGELOG.md",
"release-type": "ruby",
"include-component-in-tag": false,
"version-file": "lib/kitchen/driver/vra_version.rb"
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

0 comments on commit fa27fb1

Please sign in to comment.