We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bbd90d9 + e9f861d commit edfaa72Copy full SHA for edfaa72
1 file changed
.github/workflows/promote.yaml
@@ -0,0 +1,30 @@
1
+name: Promote
2
+run-name: "Promote ${{ github.ref_name }}"
3
+
4
+on:
5
+ push:
6
+ tags:
7
+ - "v*"
8
9
+jobs:
10
+ create-release:
11
+ runs-on: ubuntu-24.04
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v4
15
+ with:
16
+ # NOTE: We explicitly set the refs otherwise the tag
17
+ # annotations content is not fetched
18
+ # See: https://github.com/actions/checkout/issues/882
19
+ ref: ${{ github.ref }}
20
+ - uses: softprops/action-gh-release@v2
21
22
+ name: Go-errors ${{ github.ref_name }}
23
+ tag_name: ${{ github.ref_name }}
24
+ generate_release_notes: true
25
+ # We consider pre-releases if the tag contains a hyphen
26
+ # e.g. v1.2.3-alpha.0
27
+ prerelease: ${{ contains(github.ref_name, '-') }}
28
+ draft: false
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments