@@ -3,59 +3,57 @@ name: Release
3
3
on :
4
4
push :
5
5
tags :
6
- - ' v* ' # v0.8.1
6
+ - " v* " # v0.8.1
7
7
8
8
jobs :
9
-
10
9
build :
11
10
name : Create Release on Tag
12
11
runs-on : ubuntu-latest
13
12
steps :
14
-
15
- - name : Setup
16
- uses : actions/setup-go@v3
17
- with :
18
- go-version : ^1.20
19
-
20
- - name : Checkout
21
- uses : actions/checkout@v3
22
-
23
- - name : Check sdk-version file
24
- run : |
25
- SDK_VERSION="$(head -n1 version/sdk-version)"
26
- SDK_VERSION_GIT="refs/tags/${SDK_VERSION}"
27
- if [[ "${SDK_VERSION_GIT}" != "${{ github.ref }}" ]]; then
28
- echo "File version/sdk-version (${SDK_VERSION}) needs to be updated to ${{ github.ref }}"
29
- exit 1
30
- fi
31
- shell : bash
32
-
33
- - name : Tidy
34
- run : make tidy
35
-
36
- - name : Test
37
- run : make test
38
-
39
- - name : Version
40
- run : |
41
- echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
42
-
43
- - name : Release
44
- uses : actions/create-release@v1
45
- env :
46
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
- with :
48
- tag_name : ${{ github.ref }}
49
- release_name : Release ${{ github.ref }}
50
- body : Automatic Go Dapr client release
51
- draft : false
52
- prerelease : false
53
-
54
- - name : Notify
55
- uses : rjstone/discord-webhook-notify@v1
56
- with :
57
- severity : info
58
- details : Release ${{ github.ref }} published
59
- description : Release
60
- webhookUrl : ${{ secrets.DISCORD_WEBHOOK }}
61
- avatarUrl : https://github.githubassets.com/images/modules/logos_page/Octocat.png
13
+ - name : Checkout
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Setup
17
+ uses : actions/setup-go@v5
18
+ with :
19
+ go-version-file : " go.mod"
20
+
21
+ - name : Check sdk-version file
22
+ run : |
23
+ SDK_VERSION="$(head -n1 version/sdk-version)"
24
+ SDK_VERSION_GIT="refs/tags/${SDK_VERSION}"
25
+ if [[ "${SDK_VERSION_GIT}" != "${{ github.ref }}" ]]; then
26
+ echo "File version/sdk-version (${SDK_VERSION}) needs to be updated to ${{ github.ref }}"
27
+ exit 1
28
+ fi
29
+ shell : bash
30
+
31
+ - name : Tidy
32
+ run : make tidy
33
+
34
+ - name : Test
35
+ run : make test
36
+
37
+ - name : Version
38
+ run : |
39
+ echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
40
+
41
+ - name : Release
42
+ uses : actions/create-release@v1
43
+ env :
44
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
+ with :
46
+ tag_name : ${{ github.ref }}
47
+ release_name : Release ${{ github.ref }}
48
+ body : Automatic Go Dapr client release
49
+ draft : false
50
+ prerelease : false
51
+
52
+ - name : Notify
53
+ uses : rjstone/discord-webhook-notify@v1
54
+ with :
55
+ severity : info
56
+ details : Release ${{ github.ref }} published
57
+ description : Release
58
+ webhookUrl : ${{ secrets.DISCORD_WEBHOOK }}
59
+ avatarUrl : https://github.githubassets.com/images/modules/logos_page/Octocat.png
0 commit comments