Skip to content

Commit

Permalink
Fix gh release command (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmjohnson authored Oct 21, 2021
1 parent 3267d50 commit c4aff20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Although `2` is automated, it's still possible to do the procedure manually.
1. Check the previous release - https://github.com/vmware-tanzu/cartographer/releases
2. Create a tag for the new release
```bash
git tag v0.0.x # or v0.0.x-rcn
git tag v0.0.x # or v0.0.x-rc.n
git push origin <tag-name>
```
3. Ensure workflow has kicked off - https://github.com/vmware-tanzu/cartographer/actions
Expand Down
9 changes: 5 additions & 4 deletions hack/publish-github-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ main() {
submit_release_to_github() {
local version=v$1

local release_notes_basename
release_notes_basename="$(basename $RELEASE_NOTES_FILE)"

gh release create $version \
--draft \
--notes-file $RELEASE_NOTES_FILE \
"$(find $ASSETS_DIR -type f ! -name $release_notes_basename)"
./release/package/package.yaml \
./release/package/package-install.yaml \
./release/package/package-metadata.yaml \
./release/bundle.tar \
./release/cartographer.yaml
}

git_current_version() {
Expand Down

0 comments on commit c4aff20

Please sign in to comment.