name: Release with commit

on:
  push:
    branches:
      - master

jobs:
  release-application:
    runs-on: ubuntu-latest
    steps:
      - name: Github Release Tag List Crawler
        id: tag_version
        uses: mathieudutour/github-tag-action@v6.1
        with:
          github_token: ${{ secrets.GH_TOKEN }}

      - name: GitHub project release Deploy
        uses: ncipollo/release-action@v1
        with:
          tag: ${{ steps.tag_version.outputs.new_tag }}
          name: Release ${{ steps.tag_version.outputs.new_tag }}
          body: ${{ steps.tag_version.outputs.changelog }}
          generateReleaseNotes: true
