Skip to content

Commit e318e4f

Browse files
committed
Pass the .github directory target explicitly when running thor:
- If the source target is a hidden folder, then we have to have a special glob in the gemspec because `lib/**/*` wouldn't include our folder in the packaged gem.
1 parent c0e902c commit e318e4f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

cibuildgem.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
2525
spec.metadata["homepage_uri"] = spec.homepage
2626
spec.metadata["source_code_uri"] = "https://github.com/shopify/cibuildwheel"
2727

28-
spec.files = Dir["{exe,lib}/**/*", "LICENSE.md", "README.md", "lib/cibuildgem/templates/.github/**/*"]
28+
spec.files = Dir["{exe,lib}/**/*", "LICENSE.md", "README.md"]
2929
spec.bindir = "exe"
3030
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
3131
spec.require_paths = ["lib"]

lib/cibuildgem/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def ci_template
101101
@runtime_version_for_compilation = RubySeries.runtime_version_for_compilation(ruby_requirements)
102102
@ruby_versions_for_testing = RubySeries.versions_to_test_against(ruby_requirements)
103103

104-
directory(".github", context: instance_eval("binding"))
104+
directory("github", ".github", context: instance_eval("binding"))
105105
end
106106

107107
desc "release", "Release the gem with precompiled binaries. For internal usage.", hide: true

lib/cibuildgem/templates/.github/workflows/cibuildgem.yaml.tt renamed to lib/cibuildgem/templates/github/workflows/cibuildgem.yaml.tt

File renamed without changes.

0 commit comments

Comments
 (0)