From 2fa35f01d80e6f7dd24b2c9cf8b75a1c026aee7d Mon Sep 17 00:00:00 2001 From: Paul Delafosse Date: Mon, 22 Nov 2021 09:16:09 +0100 Subject: [PATCH] feat: release? --- .github/workflows/action.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 712cd11..885c54f 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -5,8 +5,20 @@ jobs: runs-on: ubuntu-latest name: check conventional commit compliance steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Conventional commit check uses: oknozor/cocogitto-action@main - - run: | - cog --help \ No newline at end of file + - name: Create changelog + run: cog changelog > Changelog.md + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + body_path: Changelog.md + files: | + Changelog.md \ No newline at end of file