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 9, 2024
1 parent a9dbc5c commit 10a97f8
Show file tree
Hide file tree
Showing 3 changed files with 40 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
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ $ 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 10a97f8

Please sign in to comment.