From 2df4e936b3ae62ef4014da28d09a39ff53764c7a Mon Sep 17 00:00:00 2001 From: zyachel Date: Fri, 20 May 2022 16:33:51 +0530 Subject: [PATCH] ci: add auto-release workflow --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 0000000..6c382a5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: release +on: + push: + branches: + - main + +jobs: + changelog-and-release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: generate changelog and bump version + id: changelog + uses: TriPSs/conventional-changelog-action@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: create release + uses: actions/create-release@v1 + if: ${{ steps.changelog.outputs.skipped == 'false' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.changelog.outputs.tag }} + release_name: ${{ steps.changelog.outputs.tag }} + body: ${{ steps.changelog.outputs.clean_changelog }}