Skip to content

Commit

Permalink
Merge pull request #86 from jordisala1991/feature/generate-changelog
Browse files Browse the repository at this point in the history
Generate changelog
  • Loading branch information
jordisala1991 committed May 27, 2021
2 parents de23f51 + aee9f61 commit 5a37c6b
Show file tree
Hide file tree
Showing 4 changed files with 303 additions and 318 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
tags: ['*']

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- id: tag_name
run: echo ::set-output name=current_version::${GITHUB_REF#refs/tags/}
shell: bash
- id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md
- uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
release_name: ${{ steps.tag_name.outputs.current_version }}
tag_name: ${{ steps.tag_name.outputs.current_version }}
body: ${{ steps.changelog_reader.outputs.changes }}
prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }}
draft: ${{ steps.changelog_reader.outputs.status == 'unreleased' }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ phpunit.xml
/vendor
.php-cs-fixer.php
.php-cs-fixer.cache
/node_modules
yarn.lock
Loading

0 comments on commit 5a37c6b

Please sign in to comment.