From f6e90d5953d65dc81e2f2eb6bd32599794669948 Mon Sep 17 00:00:00 2001 From: natilou <30585029+natilou@users.noreply.github.com> Date: Thu, 13 Jul 2023 15:49:31 -0300 Subject: [PATCH] adding realase in ci --- .github/workflows/{deploy.yaml => ci.yaml} | 31 ++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) rename .github/workflows/{deploy.yaml => ci.yaml} (56%) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/ci.yaml similarity index 56% rename from .github/workflows/deploy.yaml rename to .github/workflows/ci.yaml index d4033f2..710b551 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,9 @@ -name: Create and publish a Docker image +name: Create and publish a Docker image - Release -on: push +on: + push: + branches: + - main env: REGISTRY: ghcr.io @@ -37,3 +40,27 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + + changelog: + needs: build-and-push-image + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@2 + + - name: conventional Changelog Action + id: changelog + uses: TriPSs/conventional-changelog-action@v3.7.1 + 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 }}