File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and push image
2
2
3
3
on :
4
- push :
5
- tags :
6
- - " v*"
4
+ release :
5
+ types : [published]
7
6
8
7
jobs :
9
8
build-and-push-image :
Original file line number Diff line number Diff line change 1
- name : Create tag
1
+ name : Create GitHub release
2
2
3
- on :
4
- push :
5
- branches :
6
- - live
3
+ on : [push]
4
+ # on:
5
+ # push:
6
+ # branches:
7
+ # - live
7
8
8
9
jobs :
9
- create-tag :
10
+ create-release :
10
11
runs-on : ubuntu-latest
12
+ env :
13
+ GH_TOKEN : ${{ github.token }}
11
14
steps :
12
15
- uses : actions/checkout@v4
13
16
- uses : actions/setup-python@v5
25
28
run : |
26
29
git tag "v${VERSION}"
27
30
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
You can’t perform that action at this time.
0 commit comments