File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 7
7
# To get a newer version, you will need to update the SHA.
8
8
# You can also reference a tag or branch, but the action may change without warning.
9
9
10
- name : Build and Publish Docker image
10
+ name : Build and release
11
11
12
12
on :
13
13
push :
20
20
- " master"
21
21
22
22
jobs :
23
- push_to_registry :
23
+ build :
24
24
name : Build and Publish Docker image to Docker Hub
25
25
runs-on : ubuntu-latest
26
26
permissions :
53
53
push : ${{ github.event_name != 'pull_request' }}
54
54
tags : ${{ steps.meta.outputs.tags }}
55
55
labels : ${{ steps.meta.outputs.labels }}
56
+
57
+ release :
58
+ name : Create GitHub Release
59
+ needs : build
60
+ if : startsWith(github.ref, 'refs/tags/')
61
+ runs-on : ubuntu-latest
62
+ steps :
63
+ - name : Checkout
64
+ uses : actions/checkout@v4
65
+
66
+ - name : Release
67
+ uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments