Skip to content

Commit

Permalink
Merge pull request #76 from gocardless/gh-action-workflow-publish-rel…
Browse files Browse the repository at this point in the history
…eased-gem

Add workflow config to publish gem releases to GC repo
  • Loading branch information
Tabby authored Dec 13, 2022
2 parents 1d1cb7c + 9d14943 commit 17373f2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish gem to GitHub package registry

on:
push:
tags:
- v*

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout repo containing common GitHub action
uses: actions/checkout@v2
with:
repository: gocardless/publish-internal-gem
ssh-key: ${{ secrets.HACK_RB_DEPLOY_KEY }}
path: ./.github/workflows/publish-internal-gem
- name: Publish Gem
uses: ./.github/workflows/publish-internal-gem
with:
token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions companies-house-rest.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 3.0.2"

spec.metadata = {
"github_repo" => "ssh://github.com/gocardless/companies-house-rest",
"allowed_push_host" => "https://rubygems.pkg.github.com/gocardless",
"rubygems_mfa_required" => "true",
}

spec.add_runtime_dependency "dry-struct", "~> 1"

spec.add_development_dependency "activesupport", ">= 4.2", "< 7"
Expand Down

0 comments on commit 17373f2

Please sign in to comment.