Skip to content

Commit 8981be5

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

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
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: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
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:
9-
create-tag:
10+
create-release:
1011
runs-on: ubuntu-latest
12+
env:
13+
GH_TOKEN: ${{ github.token }}
1114
steps:
1215
- uses: actions/checkout@v4
1316
- uses: actions/setup-python@v5
@@ -25,3 +28,9 @@ jobs:
2528
run: |
2629
git tag "v${VERSION}"
2730
git push origin "v${VERSION}"
31+
- name: Create release
32+
run: |
33+
gh release create "v${VERSION}" \
34+
--repo="${GITHUB_REPOSITORY}" \
35+
--title="${VERSION}" \
36+
--generate-notes

0 commit comments

Comments
 (0)