Skip to content

Commit

Permalink
Merge pull request #19 from JellyBellyDev/feat/create-release-action
Browse files Browse the repository at this point in the history
feat(ci): create release action
  • Loading branch information
JellyBellyDev authored Jan 5, 2024
2 parents 81fe253 + 429b2e1 commit 5c798ea
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Create release

on:
workflow_dispatch:

jobs:
changelog:
name: Create changelog
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
tag-prefix: ''
release-count: 0
skip-on-empty: false
skip-version-file: true
output-file: 'CHANGELOG.md'

- name: Create Release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
php-versions: ['7.4', '8.0', '8.1', '8.2']
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3']

name: PHP ${{ matrix.php-versions }}

Expand Down

0 comments on commit 5c798ea

Please sign in to comment.