This repository was archived by the owner on Sep 24, 2024. It is now read-only.
File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,15 @@ jobs:
38
38
run : bosh vendor-package golang-1.17-linux ./src/golang-release
39
39
40
40
- name : Build BOSH release tarball
41
+ id : build_bosh_release
41
42
run : |
42
43
set -euo pipefail
43
44
VERSION=${{ steps.tag_version.outputs.new_version }}
45
+ RELEASE_FILE=go-cf-api-boshrelease-"$VERSION".tgz
44
46
45
- bosh create-release --final --version "$VERSION" --tarball "go-cf-api-boshrelease-$VERSION.tgz"
46
-
47
+ bosh create-release --final --version "$VERSION" --tarball "$RELEASE_FILE"
48
+ echo "::set-output name=sha1::$(sha1sum "$RELEASE_FILE" | cut -d ' ' -f 1)"
49
+
47
50
- name : Push Tag
48
51
id : push_tag
49
52
uses :
mathieudutour/[email protected]
56
59
with :
57
60
files : ./go-cf-api-boshrelease-*.tgz
58
61
fail_on_unmatched_files : true
59
- body : ${{ steps.tag_version.outputs.changelog }}
62
+ body : |
63
+ ${{ steps.tag_version.outputs.changelog }}
64
+
65
+ ## Deployment
66
+ ```YAML
67
+ releases:
68
+ name: go-cf-api
69
+ version: ${{ steps.tag_version.outputs.new_version }}
70
+ url: https://github.com/cloudfoundry/go-cf-api-release/releases/download/${{ steps.tag_version.outputs.new_tag }}/go-cf-api-boshrelease-${{ steps.tag_version.outputs.new_version }}.tgz
71
+ sha1: ${{ steps.build_bosh_release.outputs.sha1 }}
72
+ ```
60
73
tag_name : ${{ steps.tag_version.outputs.new_tag }}
61
74
62
75
You can’t perform that action at this time.
0 commit comments