@@ -61,5 +61,45 @@ If you right-click on the channel / messages, you can hit `Copy Link` and also s
6161(e.g. ` https://${YOUR_WORKSPACE}.slack.com/messages/${DEST_CHANNEL_ID} ` )
6262
6363## Slack Incoming Webhooks
64- To get the ` HOOK_URL ` for Incoming Webhooks, you'll follow
64+ To get the ` HOOK_URL ` for Incoming Webhooks, you'll follow
6565[ Slack's Incoming Webhooks instructions] ( https://api.slack.com/incoming-webhooks ) .
66+
67+ # Releasing
68+
69+ Releases are triggered by pushing a tag. The [ release workflow] ( .github/workflows/release.yml ) runs
70+ [ GoReleaser] ( https://goreleaser.com/ ) on any tag push, which builds binaries, publishes packages
71+ (deb/rpm/apk), and pushes the Docker image to ` ghcr.io/salesforce/ci-result-to-slack ` .
72+ Release notes are automatically generated from merged PRs using [ ` .github/release.yml ` ] ( .github/release.yml ) .
73+
74+ ## Cutting a release
75+
76+ ``` sh
77+ git tag v1.2.3
78+ git push origin v1.2.3
79+ ```
80+
81+ ## Choosing a version
82+
83+ This project uses [ semantic versioning] ( https://semver.org ) . Choose the next version based on
84+ what has changed since the last release:
85+
86+ - ` PATCH ` (e.g. ` v1.2.3 ` ) — bug fixes, dependency bumps, documentation
87+ - ` MINOR ` (e.g. ` v1.3.0 ` ) — new backwards-compatible functionality
88+ - ` MAJOR ` (e.g. ` v2.0.0 ` ) — breaking changes
89+
90+ To see the latest tag: ` git describe --tags --abbrev=0 `
91+
92+ Optionally, [ ` svu ` ] ( https://github.com/caarlos0/svu ) can calculate the next version automatically
93+ from [ conventional commits] ( https://www.conventionalcommits.org/ ) :
94+
95+ ``` sh
96+ # Install
97+ brew install caarlos0/tap/svu
98+
99+ # Show what the next version would be
100+ svu next
101+
102+ # Tag and push
103+ git tag " $( svu next) "
104+ git push origin " $( svu next) "
105+ ```
0 commit comments