Skip to content

Commit

Permalink
ci: Added Release Please
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Dec 3, 2024
1 parent 94ef100 commit 00b2509
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/php83.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,18 @@ jobs:
- name: CodeCov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
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 }}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down
22 changes: 22 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}

0 comments on commit 00b2509

Please sign in to comment.