From 4951f3d0fbc9ce23435b64032371cebb1ff76365 Mon Sep 17 00:00:00 2001 From: Andrea Giannantonio Date: Tue, 9 Jan 2024 09:36:37 +0100 Subject: [PATCH] feat(ci): add create release action --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ CHANGELOG.md | 11 +---------- CONTRIBUTING.md | 5 +++++ 3 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..48a5827 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 241f9c5..3a8fff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fd00c97..95d2966 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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