Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit c894f6d

Browse files
authored
Merge pull request #8 from cloudfoundry/sha1
Add sha1 sum to release
2 parents 94f6463 + 411a8a9 commit c894f6d

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/bosh-release.yml

+16-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ jobs:
3838
run: bosh vendor-package golang-1.17-linux ./src/golang-release
3939

4040
- name: Build BOSH release tarball
41+
id: build_bosh_release
4142
run: |
4243
set -euo pipefail
4344
VERSION=${{ steps.tag_version.outputs.new_version }}
45+
RELEASE_FILE=go-cf-api-boshrelease-"$VERSION".tgz
4446
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+
4750
- name: Push Tag
4851
id: push_tag
4952
uses: mathieudutour/[email protected]
@@ -56,7 +59,17 @@ jobs:
5659
with:
5760
files: ./go-cf-api-boshrelease-*.tgz
5861
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+
```
6073
tag_name: ${{ steps.tag_version.outputs.new_tag }}
6174

6275

0 commit comments

Comments
 (0)