Skip to content

Commit 291b624

Browse files
committed
Simplify release process
This commit will make GitHub create a release every time we push a new tag to the repository. Apart form that, this commit will also make sure that only the files that are essencial will be packaged in the next versions.
1 parent 275fca9 commit 291b624

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.gitattributes

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
/.* export-ignore
2-
/phpcs.xml.dist export-ignore
3-
/phpunit.xml.dist export-ignore
4-
/tests export-ignore
1+
/* export-ignore
2+
/composer.json -export-ignore
3+
/LICENSE -export-ignore
4+
/README.md -export-ignore
5+
/src -export-ignore
6+
/stringify.php -export-ignore

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Release
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v6
11+
- name: Release
12+
uses: softprops/action-gh-release@v2
13+
if: github.ref_type == 'tag'

0 commit comments

Comments
 (0)