diff --git a/.github/workflows/auto-create-release.yml b/.github/workflows/auto-create-release.yml deleted file mode 100644 index 70e9c91567..0000000000 --- a/.github/workflows/auto-create-release.yml +++ /dev/null @@ -1,24 +0,0 @@ -on: - push: - tags: - - 'v*' - -name: Create Release - -jobs: - build: - name: Create Release - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Extract body from changelog - run: | - NEW_VERSION=$(echo '${{ github.ref }}' | sed 's/refs\/tags\/v//') - echo $NEW_VERSION - sed -n -e "/## ${NEW_VERSION}/,/ extractedBody.md - - name: Create Release - uses: ncipollo/release-action@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - bodyFile: 'extractedBody.md' diff --git a/.github/workflows/publish_docker_images.yml b/.github/workflows/release.yml similarity index 87% rename from .github/workflows/publish_docker_images.yml rename to .github/workflows/release.yml index 3765a3a39a..b29e917993 100644 --- a/.github/workflows/publish_docker_images.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Build Docker images +name: Release new Typebot version on: push: @@ -152,3 +152,22 @@ jobs: - name: Inspect image run: | docker buildx imagetools inspect baptistearno/typebot-${{ matrix.app }}:${{ steps.meta.outputs.version }} + + create-release: + name: Create Release + runs-on: ubuntu-latest + needs: merge-and-push + if: startsWith(github.ref, 'refs/tags/v') + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Extract body from changelog + run: | + NEW_VERSION=$(echo '${{ github.ref }}' | sed 's/refs\/tags\/v//') + echo $NEW_VERSION + sed -n -e "/## ${NEW_VERSION}/,/ extractedBody.md + - name: Create Release + uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + bodyFile: 'extractedBody.md'