mirror of
https://github.com/adityachandelgit/BookLore.git
synced 2026-02-11 22:39:04 -06:00
Create release in the workflow
This commit is contained in:
12
.github/workflows/docker-build-publish.yml
vendored
12
.github/workflows/docker-build-publish.yml
vendored
@@ -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 }}
|
||||
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