2
2
push :
3
3
# Sequence of patterns matched against refs/tags
4
4
tags :
5
- - ' v* ' # Push events to matching v*, i.e. v1.0, v20.15.10
5
+ - " v* " # Push events to matching v*, i.e. v1.0, v20.15.10
6
6
7
7
name : Create Release
8
8
9
9
jobs :
10
-
11
10
cli :
12
11
name : Release the CLI
13
12
runs-on : ubuntu-latest
@@ -16,17 +15,17 @@ jobs:
16
15
uses : actions/checkout@v3
17
16
with :
18
17
fetch-depth : 0
19
-
18
+
20
19
- name : Set up Go
21
- uses : actions/setup-go@v3
20
+ uses : actions/setup-go@v4
22
21
with :
23
- go-version : 1.18
22
+ go-version : stable
24
23
25
24
- name : GoReleaser
26
- uses : goreleaser/goreleaser-action@v3
25
+ uses : goreleaser/goreleaser-action@v4
27
26
with :
28
27
version : latest
29
- args : release --rm-dist
28
+ args : release --clean
30
29
env :
31
30
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
31
@@ -36,38 +35,38 @@ jobs:
36
35
runs-on : ubuntu-latest
37
36
38
37
steps :
39
- - name : Set up Go 1.18 .x
40
- uses : actions/setup-go@v3
41
- with :
42
- go-version : 1.18 .x
38
+ - name : Set up Go 1.19 .x
39
+ uses : actions/setup-go@v4
40
+ with :
41
+ go-version : 1.19 .x
43
42
44
- # will install latest ko version and default login/configure
45
- # KO_DOCKER_REPO to ghcr.io
46
- - name : Setup ko for ghcr.io
47
-
48
-
49
- - name : Checkout
50
- uses : actions/checkout@v3
51
- with :
52
- fetch-depth : 1
43
+ # will install latest ko version and default login/configure
44
+ # KO_DOCKER_REPO to ghcr.io
45
+ - name : Setup ko for ghcr.io
46
+
53
47
54
- - name : Get Release URL
55
- id : get_release_url
56
- uses :
bruceadams/[email protected]
57
- env :
58
- GITHUB_TOKEN : ${{ github.token }}
48
+ - name : Checkout
49
+ uses : actions/checkout@v3
50
+ with :
51
+ fetch-depth : 1
59
52
60
- - name : Build and Publish images, Produce release artifact.
61
- run : |
62
- ko resolve --platform=all --tags $(basename "${{ github.ref }}" ) -BRf config/ > release.yaml
53
+ - name : Get Release URL
54
+ id : get_release_url
55
+ uses :
bruceadams/[email protected]
56
+ env :
57
+ GITHUB_TOKEN : ${{ github.token }}
58
+
59
+ - name : Build and Publish images, Produce release artifact.
60
+ run : |
61
+ ko resolve --platform=all --tags $(basename "${{ github.ref }}" ) -BRf config/ > release.yaml
63
62
64
- - name : Upload Release Asset
65
- id : upload-release-asset
66
- uses : actions/upload-release-asset@v1
67
- env :
68
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
- with :
70
- upload_url : ${{ steps.get_release_url.outputs.upload_url }}
71
- asset_path : ./release.yaml
72
- asset_name : release.yaml
73
- asset_content_type : text/plain
63
+ - name : Upload Release Asset
64
+ id : upload-release-asset
65
+ uses : actions/upload-release-asset@v1
66
+ env :
67
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68
+ with :
69
+ upload_url : ${{ steps.get_release_url.outputs.upload_url }}
70
+ asset_path : ./release.yaml
71
+ asset_name : release.yaml
72
+ asset_content_type : text/plain
0 commit comments