File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 37
37
with :
38
38
go-version : " ~1.20"
39
39
40
+ - name : Get Version
41
+ run : echo "::set-output name=version::$(./scripts/version.sh)"
42
+ id : version
43
+
40
44
- name : Build
41
45
run : ./scripts/build.sh
42
46
78
82
helm repo index build/helm --url https://helm.coder.com/logstream-kube --merge build/helm/index.yaml
79
83
gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/${version}.tgz gs://helm.coder.com/logstream-kube
80
84
gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/index.yaml gs://helm.coder.com/logstream-kube
85
+
86
+ - name : Create Release
87
+ uses : actions/create-release@v1
88
+ id : create_release
89
+ with :
90
+ draft : false
91
+ prerelease : false
92
+ release_name : ${{ steps.version.outputs.version }}
93
+ tag_name : ${{ github.ref }}
94
+
95
+ - name : Upload Helm Release Asset
96
+ uses : actions/upload-release-asset@v1
97
+ env :
98
+ GITHUB_TOKEN : ${{ github.token }}
99
+ with :
100
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
101
+ asset_path : build/${{ steps.version.outputs.version }}.tgz
102
+ asset_name : helm.tar.gz
103
+ asset_content_type : application/gzip
You can’t perform that action at this time.
0 commit comments