Skip to content

Commit c183781

Browse files
committed
ci: add release
1 parent cb02dad commit c183781

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/build.yml .github/workflows/build_release.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# To get a newer version, you will need to update the SHA.
88
# You can also reference a tag or branch, but the action may change without warning.
99

10-
name: Build and Publish Docker image
10+
name: Build and release
1111

1212
on:
1313
push:
@@ -20,7 +20,7 @@ on:
2020
- "master"
2121

2222
jobs:
23-
push_to_registry:
23+
build:
2424
name: Build and Publish Docker image to Docker Hub
2525
runs-on: ubuntu-latest
2626
permissions:
@@ -53,3 +53,15 @@ jobs:
5353
push: ${{ github.event_name != 'pull_request' }}
5454
tags: ${{ steps.meta.outputs.tags }}
5555
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

0 commit comments

Comments
 (0)