From 00b2509653e498c794960c8c6468cac4b846b03f Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Tue, 3 Dec 2024 23:02:35 +0300 Subject: [PATCH] ci: Added Release Please --- .github/workflows/php83.yml | 16 +++++++++++++++- composer.json | 1 + release-please-config.json | 22 ++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 release-please-config.json diff --git a/.github/workflows/php83.yml b/.github/workflows/php83.yml index 7884d0e..9a2c9c0 100644 --- a/.github/workflows/php83.yml +++ b/.github/workflows/php83.yml @@ -67,4 +67,18 @@ jobs: - name: CodeCov uses: codecov/codecov-action@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }} + + release_prod: + name: Create Release PR + needs: + - "test" + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - uses: actions/checkout@v4 + - uses: google-github-actions/release-please-action@v3 + with: + release-type: php + config-file: release-please-config.json + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/composer.json b/composer.json index e9560a8..0f7842d 100644 --- a/composer.json +++ b/composer.json @@ -2,6 +2,7 @@ "name": "webfiori/database", "description": "Database abstraction layer of WebFiori framework.", "type": "library", + "version":"0.8.11", "keywords": [ "Database","PHP","Query Builder","Library","MySQL" ], diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..2f70c95 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,22 @@ +{ + "include-v-in-tag":true, + "tag-separator": "-", + "changelog-path": "CHANGELOG.md", + "changelog-sections": [ + { "type": "feat", "section": "Features" }, + { "type": "feature", "section": "Features" }, + { "type": "fix", "section": "Bug Fixes" }, + { "type": "perf", "section": "Performance Improvements" }, + { "type": "revert", "section": "Reverts" }, + { "type": "docs", "section": "Documentation" }, + { "type": "style", "section": "Styles" }, + { "type": "chore", "section": "Miscellaneous Chores" }, + { "type": "refactor", "section": "Code Refactoring" }, + { "type": "test", "section": "Testing" }, + { "type": "build", "section": "Build System" }, + { "type": "ci", "section": "Continuous Integration" }, + { "type": "ui", "section": "User Interface" }, + { "type": "database", "section": "Database Changes" }, + { "type": "email", "section": "Email Notifications Changes" } + ] +} \ No newline at end of file