Skip to content

Commit 7e2e326

Browse files
ci: create GH release on tag
1 parent ec1cab7 commit 7e2e326

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- '*'
99

1010
jobs:
11-
build:
11+
build-and-push:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout repository
@@ -47,3 +47,27 @@ jobs:
4747
davidecavestro/gphotos-cdp:${{ env.VERSION }}
4848
davidecavestro/gphotos-cdp:latest
4949
if: startsWith(github.ref, 'refs/tags/')
50+
51+
create-release:
52+
runs-on: ubuntu-latest
53+
needs: build-and-push
54+
permissions: write-all
55+
if: startsWith(github.ref, 'refs/tags/')
56+
57+
steps:
58+
- name: Checkout repository
59+
uses: actions/checkout@v3
60+
61+
- name: Create Release
62+
id: create_release
63+
uses: actions/create-release@v1
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
with:
67+
tag_name: ${{ github.ref_name }}
68+
release_name: v${{ github.ref_name }}
69+
body: |
70+
This release provides the container image:
71+
`ghcr.io/davidecavestro/gphotos-cdp:${{ github.ref_name }}`
72+
draft: false
73+
prerelease: false

0 commit comments

Comments
 (0)