Skip to content

Commit

Permalink
Merge pull request #30 from yuki-snow1823/fix-pkg
Browse files Browse the repository at this point in the history
Included lib dir in the packaging, with executable commands
  • Loading branch information
yuki-snow1823 authored May 25, 2024
2 parents d5430f5 + f2e6d3d commit e06eb58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/create_release_notes.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: create release notes

on:
pull_request:
types:
- closed
on: push

jobs:
create_release_notes:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest

steps:
Expand All @@ -19,12 +15,8 @@ jobs:
with:
ruby-version: '3.3'

- name: Install dependencies
run: |
bundle install
- name: Run script
run: ruby lib/main.rb
run: exe/resquirrel
env:
GITHUB_EVENT_PATH: ${{ github.event_path }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Expand Down
3 changes: 2 additions & 1 deletion lib/main.rb → exe/resquirrel
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

require_relative "resquirrel"
require "resquirrel"

Resquirrel.generate_release_note
5 changes: 3 additions & 2 deletions resquirrel.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Gem::Specification.new do |spec|
spec.version = Resquirrel::VERSION
spec.authors = ["yuki-snow1823"]
spec.email = ["y.horikoshi.pg@gmail.com"]

spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.summary = "The library to support the creation of release notes"
spec.description = "RubyGems that automatically create release notes for Notion DB using Open AI API when PR merge."
spec.homepage = "https://github.com/yuki-snow1823/resquirrel"
Expand All @@ -20,7 +21,7 @@ Gem::Specification.new do |spec|
spec.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(File.expand_path(f) == __FILE__) ||
f.start_with?(*%w[lib/ spec/ .git .github Gemfile])
f.start_with?(*%w[spec/ .git .github Gemfile])
end
end
spec.require_paths = ["lib"]
Expand Down

0 comments on commit e06eb58

Please sign in to comment.