Skip to content

Commit

Permalink
fix: include .rbnext directory into the gem package
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jul 31, 2024
1 parent fbec903 commit f7d1439
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release gems
on:
workflow_dispatch:
push:
tags:
- v*

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch current tag as annotated. See https://github.com/actions/checkout/issues/290
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Configure RubyGems Credentials
uses: rubygems/configure-rubygems-credentials@main
- name: Publish to RubyGems
run: |
gem install gem-release
make ci-release
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ release: test lint
RELEASING_GEM=true gem release -t
git push
git push --tags

ci-release: test lint
RELEASING_GEM=true gem release
2 changes: 1 addition & 1 deletion view_component-contrib.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |s|

s.license = "MIT"

s.files = Dir.glob("app/**/*") + Dir.glob("lib/**/*") + %w[README.md LICENSE.txt CHANGELOG.md]
s.files = Dir.glob("app/**/*") + Dir.glob("lib/.rbnext/**/*") + Dir.glob("lib/**/*") + %w[README.md LICENSE.txt CHANGELOG.md]
s.require_paths = ["lib"]
s.required_ruby_version = ">= 2.7"

Expand Down

0 comments on commit f7d1439

Please sign in to comment.