diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..5456f46 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,31 @@ +# This workflow creates a release for every pushed tag with a changelog based on conventional commits. +name: Release + +on: + push: + tags: + - '*' + +jobs: + create-release: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Create changelog.yml text + id: changelog + uses: loopwerk/tag-changelog@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + exclude_types: other,doc,chore,build + + - name: Create release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body: ${{ steps.changelog.outputs.changes }} \ No newline at end of file