Create release in the workflow

This commit is contained in:
aditya.chandel
2025-03-13 09:29:15 -06:00
parent 0008b025aa
commit db3bf7fa7c
+9 -1
View File
@@ -1,4 +1,4 @@
name: Build, Tag, and Push to GitHub Container Registry name: Build, Tag, Push, and Release to GitHub Container Registry
on: on:
push: push:
@@ -72,3 +72,11 @@ jobs:
- name: Push Docker Image to GHCR - name: Push Docker Image to GHCR
run: | run: |
docker push ghcr.io/${{ github.actor }}/booklore-app:${{ env.tag }} 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 }}"