From db3bf7fa7cc0abb3b310eaa21e583834d2f60272 Mon Sep 17 00:00:00 2001 From: "aditya.chandel" <> Date: Thu, 13 Mar 2025 09:29:15 -0600 Subject: [PATCH] Create release in the workflow --- .github/workflows/docker-build-publish.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build-publish.yml b/.github/workflows/docker-build-publish.yml index 275cc26ba..3cf45401a 100644 --- a/.github/workflows/docker-build-publish.yml +++ b/.github/workflows/docker-build-publish.yml @@ -1,4 +1,4 @@ -name: Build, Tag, and Push to GitHub Container Registry +name: Build, Tag, Push, and Release to GitHub Container Registry on: push: @@ -71,4 +71,12 @@ jobs: - name: Push Docker Image to GHCR run: | - docker push ghcr.io/${{ github.actor }}/booklore-app:${{ env.tag }} \ No newline at end of file + docker push ghcr.io/${{ github.actor }}/booklore-app:${{ env.tag }} + + - name: Create GitHub Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create ${{ env.new_tag }} \ + --title "Release ${{ env.new_tag }}" \ + --notes "Automated release for ${{ env.new_tag }}" \ No newline at end of file