Skip to content

Commit 4e38088

Browse files
authored
Merge pull request #41 from embano1/issue-40
2 parents 4a8a5ab + 941816a commit 4e38088

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

RELEASE.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# How to create a Release
2+
3+
We use `tags` to drive the creation of the releases. This is handled by the
4+
Github Actions release workflow in
5+
[`ps-ce-sdk-release.yaml`](.github/workflows/ps-ce-sdk-release.yaml).
6+
7+
A new release will upload the `PowerShell` module artifacts to the `PowerShell`
8+
[gallery](https://www.powershellgallery.com/packages/CloudEvents.Sdk).
9+
10+
## Step 1 - Bump Module Version
11+
12+
Bump the `ModuleVersion` in
13+
[`src/CloudEventsPowerShell/CloudEvents.Sdk.psd1`](./src/CloudEventsPowerShell/CloudEvents.Sdk.psd1)
14+
to the next semantic release version (without `"v"` prefix).
15+
16+
```powershell
17+
# Version number of this module.
18+
ModuleVersion = '0.3.0'
19+
```
20+
21+
Create a pull request with this change, review and approve it **after** all checks
22+
have passed.
23+
24+
25+
## Step 2 - Update local `main` branch
26+
27+
Pull in the latest changes, incl. the merged PR above, into your local `main`
28+
branch of this repository **before** creating a `tag` via the `git` CLI.
29+
30+
```console
31+
git checkout main
32+
git fetch -avp
33+
git pull upstream main
34+
```
35+
36+
**Note:** the above commands assume `upstream` pointing to the remote
37+
`https://github.com/cloudevents/sdk-powershell.git`
38+
39+
## Step 3 - Create and push a Tag
40+
41+
42+
```console
43+
RELEASE=v0.3.0
44+
git tag -a $RELEASE -m "Release ${RELEASE}"
45+
git push upstream refs/tags/${RELEASE}
46+
```
47+
48+
49+
This will trigger the release
50+
[workflow](https://github.com/cloudevents/sdk-powershell/actions/workflows/ps-ce-sdk-release.yaml).
51+
**Verify** that it executed successfully and that a new Github
52+
[release](https://github.com/cloudevents/sdk-powershell/releases) was created.
53+
54+
The release workflow also creates a pull request with the updated
55+
[`CHANGELOG.md`](CHANGELOG.md). **Verify**, approve and merge accordingly.
56+
57+
If you need to make changes to the Github release notes, you can edit them on the [release](https://github.com/cloudevents/sdk-powershell/releases) page.

0 commit comments

Comments
 (0)