Create release in the workflow
This commit is contained in:
@@ -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:
|
||||||
@@ -71,4 +71,12 @@ 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 }}"
|
||||||
Reference in New Issue
Block a user