Skip to content

Commit

Permalink
feat(ci): add create release action
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBellyDev committed Jan 5, 2024
1 parent 5edf031 commit a176938
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 6 deletions.
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@v4

- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
preset: conventionalcommits
github-token: ${{ secrets.GITHUB_TOKEN }}
git-user-name: ${{ github.actor }}
git-user-email: ${{ github.actor }}@users.noreply.github.com
tag-prefix: 'v'
input-file: 'CHANGELOG.md'
output-file: 'CHANGELOG.md'
skip-on-empty: false
skip-version-file: true

- name: Create Release
uses: softprops/action-gh-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
40 changes: 34 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
# Changelog
All notable changes to this project will be documented in this file.
## [2.2.1] - 2023-12-19

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Changed
- chore: add workflows pipeline for php 8.2
- fix: added type to attributes property of Recipient


## [2.2.0] - 2023-08-29

### Added
- Add support for user custom attributes
- Add support for /users/merge endpoint

### Changed
- Fix pull request template
- Add static as return type of BaseObject fromArray method
- Add properties to Subscription/GetStatusResponse class

## [2.1.0] - 2023-05-11

### Added
- Add new exceptions for client and server errors

## [Unreleased]
### Changed
- Modified tests data provider to match properties types

## [2.0.0] - 2022-03-28
### Added
Expand All @@ -14,6 +31,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Set minimum required PHP version to 8.0

## [1.3.1] - 2023-08-29
### Changed
- Add properties to Subscription/GetStatusResponse class

## [1.3.0] - 2023-05-05
### Added
- Add new exceptions for client and server errors

### Changed
- Modified tests data provider to match properties types

## [1.2.0] - 2022-03-28
### Added
- Add support to Symfony http client contracts v3
Expand All @@ -24,4 +52,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [1.0.0] - 2022-01-21
### Added
- Braze-PHP-SDK released
- Braze-PHP-SDK released
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ composer test-coverage-html
composer php-cs-fixer
```

## Commit guidelines

Please see the [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## Contributors

Below the list of all contributors:
Expand Down

0 comments on commit a176938

Please sign in to comment.