Skip to content

Commit cf0d22f

Browse files
ci: create github release on merge to live
1 parent c952ac8 commit cf0d22f

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/build-and-push-image.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Build and push image
22

33
on:
4-
push:
5-
tags:
6-
- "v*"
4+
release:
5+
types: [published]
76

87
jobs:
98
build-and-push-image:

.github/workflows/create-tag.yml renamed to .github/workflows/create-release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: Create tag
1+
name: Create GitHub release
22

3-
on:
4-
push:
5-
branches:
6-
- live
3+
on: [push]
4+
# on:
5+
# push:
6+
# branches:
7+
# - live
78

89
jobs:
910
create-tag:
@@ -25,3 +26,9 @@ jobs:
2526
run: |
2627
git tag "v${VERSION}"
2728
git push origin "v${VERSION}"
29+
- name: Create release
30+
run: |
31+
gh release create "v${VERSION}" \
32+
--repo="${GITHUB_REPOSITORY}" \
33+
--title="${VERSION}" \
34+
--generate-notes

0 commit comments

Comments
 (0)