Skip to content

Commit 5ce5928

Browse files
committed
Add .gitattributes for lean Composer installs and release workflow
- Exclude dev files (tests, CI, examples, IDE configs) from Composer package - Add GitHub Actions workflow to create releases on version tags (v*)
1 parent df89f07 commit 5ce5928

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Export ignore — these files are excluded from the Composer package
2+
# (when installed via `composer require`, users won't get these)
3+
4+
/.github export-ignore
5+
/.php-cs-fixer.dist.php export-ignore
6+
/.cursorrules export-ignore
7+
/.gitattributes export-ignore
8+
/.gitignore export-ignore
9+
/CLAUDE.md export-ignore
10+
/examples export-ignore
11+
/llms.txt export-ignore
12+
/phpstan.neon export-ignore
13+
/phpunit.xml export-ignore
14+
/tests export-ignore

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
name: Create Release
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Create GitHub Release
21+
uses: softprops/action-gh-release@v2
22+
with:
23+
generate_release_notes: true

0 commit comments

Comments
 (0)