Skip to content

Commit

Permalink
👷 Only trigger Github release creation after images are deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Sep 2, 2024
1 parent db9813d commit 653ef4e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/auto-create-release.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Docker images
name: Release new Typebot version

on:
push:
Expand Down Expand Up @@ -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}/,/<a/ p" ./CHANGELOG.md | sed -e '1,2d' | sed -e '$d' | sed -e '$d' > extractedBody.md
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
bodyFile: 'extractedBody.md'

0 comments on commit 653ef4e

Please sign in to comment.