Skip to content

Commit

Permalink
Merge pull request #106 from badges/feat/create-release-action
Browse files Browse the repository at this point in the history
feat(ci): add create release action
  • Loading branch information
JellyBellyDev committed Jan 10, 2024
2 parents a9dbc5c + 4951f3d commit 397444c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 10 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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.GH_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:
token: ${{ secrets.GH_TOKEN }}
tag_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
11 changes: 1 addition & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# CHANGELOG

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [v3.1.0] - 2024-01-07

### Added
Expand Down Expand Up @@ -169,7 +160,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- stable release for poser


[Unreleased]: https://github.com/badges/poser/compare/v3.0.0...HEAD
[v3.1.0]: https://github.com/badges/poser/tree/v3.1.0
[v3.0.0]: https://github.com/badges/poser/tree/v3.0.0
[v2.3.1]: https://github.com/badges/poser/tree/v2.3.1
[v2.3.0]: https://github.com/badges/poser/tree/v2.3.0
Expand Down
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ $ composer phpspec
$ composer behat
```

## Commit guidelines

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


## How build new images on M1
```shell
$ docker run --privileged --rm tonistiigi/binfmt --install all
Expand Down

0 comments on commit 397444c

Please sign in to comment.