Skip to content

Commit 121ab44

Browse files
ci: create GH release on tag
1 parent ec1cab7 commit 121ab44

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/docker-image.yml

+24-1
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,26 @@ 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+
if: startsWith(github.ref, 'refs/tags/')
55+
56+
steps:
57+
- name: Checkout repository
58+
uses: actions/checkout@v3
59+
60+
- name: Create Release
61+
id: create_release
62+
uses: actions/create-release@v1
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
with:
66+
tag_name: ${{ github.ref_name }}
67+
release_name: v${{ github.ref_name }}
68+
body: |
69+
This release provides the container image:
70+
`ghcr.io/davidecavestro/gphotos-cdp:${{ github.ref_name }}`
71+
draft: false
72+
prerelease: false

0 commit comments

Comments
 (0)