Skip to content

Commit ebbad97

Browse files
authored
Merge pull request #86 from ClosureTree/release
feat: add release workflow
2 parents f86f5db + 73bd5d3 commit ebbad97

4 files changed

+36
-2
lines changed

.github/workflows/release.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: google-github-actions/release-please-action@v4
18+
id: release
19+
with:
20+
command: manifest

.release-please-manifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

release-please-config.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"release-type": "ruby",
3+
"packages": {
4+
".": {
5+
"release-type": "ruby",
6+
"package-name": "with_advisory_lock"
7+
}
8+
}
9+
}

with_advisory_lock.gemspec

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ Gem::Specification.new do |spec|
1616
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
1717
spec.test_files = spec.files.grep(%r{^test/})
1818
spec.require_paths = %w[lib]
19-
spec.metadata = { "rubyspecs_mfa_required" => "true" }
19+
spec.metadata = { 'rubyspecs_mfa_required' => 'true' }
2020
spec.required_ruby_version = '>= 2.7.0'
21-
spec.metadata["yard.run"] = "yri"
21+
spec.metadata['yard.run'] = 'yri'
22+
23+
spec.metadata['homepage_uri'] = spec.homepage
24+
spec.metadata['source_code_uri'] = 'https://github.com/ClosureTree/with_advisory_lock'
25+
spec.metadata['changelog_uri'] = 'https://github.com/ClosureTree/with_advisory_lock/blob/master/CHANGELOG.md'
2226

2327
spec.add_runtime_dependency 'activerecord', '>= 6.1'
2428

0 commit comments

Comments
 (0)