From 061dfb333b70d1db6cbdd02b6151a5247cbc42cc Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Wed, 10 Nov 2021 04:19:22 +0000 Subject: [PATCH] release: add github action to automatically generate changelog Signed-off-by: Ramkumar Chinchani --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..f2e5dddec --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: create-release +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v1.0.0 + +jobs: + release: + runs-on: ubuntu-latest + steps: + # To use this repository's private action, you must check out the repository + - name: Checkout + uses: actions/checkout@v2 + - name: Generate changelog + id: changelog + uses: metcalfc/changelog-generator@v1.0.1 + with: + myToken: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: ${{ steps.changelog.outputs.changelog }} + draft: false + prerelease: false