Skip to content

Commit 3685072

Browse files
johnstcnhugodutka
andauthored
chore: document release process (#65)
Co-authored-by: Hugo Dutka <hugo@coder.com>
1 parent 809e506 commit 3685072

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

MAINTAINERS.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Information for Maintainers
2+
3+
## Release Process
4+
5+
Before performing a release, perform a local "smoke-test".
6+
If everything seems OK, you can proceed to do the following:
7+
8+
1. Update the version string in the following places:
9+
- `openapi.json`
10+
- `chat/package.json`
11+
- `lib/httpapi/server.go`
12+
2. Add details in `CHANGELOG.md` on what changed.
13+
3. Create a PR with the subject `chore: update version to X.Y.Z`
14+
4. Once the above PR is approved and merged, create a new git tag `vX.Y.Z` pointing to the commit of the above PR merged to `main`:S
15+
16+
```shell
17+
# Fetch existing tags first!
18+
git fetch --tags
19+
git tag -a vX.Y.Z -m 'vX.Y.Z'
20+
```
21+
22+
5. Push the tag:
23+
24+
```shell
25+
git push origin tag vX.Y.Z
26+
```
27+
28+
6. Visit `https://github.com/coder/agentapi/releases/tag/vX.Y.Z` and "Create release from tag".
29+
30+
- Select the tag you pushed previously.
31+
- Select the previous tag and "Generate release notes". Amend as required.
32+
- **IMPORTANT:** un-check "Set as latest release" and check "Set as a pre-release".
33+
- Click "Publish Release". This will trigger a "Build Release Binaries" CI job.
34+
35+
7. Visit `https://github.com/coder/agentapi/actions/workflows/release.yml` and monitor the status of the job that was created in the previous step. This will upload the built assets to the corresponding release.
36+
37+
8. Once the updated assets are released, you can now visit `https://github.com/coder/agentapi/releases/tag/vX.Y.Z`, click "Edit" (✎), and check "Set as latest release".

0 commit comments

Comments
 (0)