This repository was archived by the owner on Sep 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff 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/github-tag-action@v6.0
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
You can’t perform that action at this time.
0 commit comments