Skip to content

Commit 64b826d

Browse files
committed
release v0.5.3
1 parent 90fb2df commit 64b826d

File tree

3 files changed

+50
-24
lines changed

3 files changed

+50
-24
lines changed

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,41 @@
1212

1313
`[BUGFIX]`
1414

15+
# 0.5.1
16+
17+
`[CHANGE]`
18+
19+
`[FEATURE]`
20+
21+
`[ENHANCEMENT]`
22+
23+
`[BUGFIX]`
24+
- Fix the issue that ofn install cannot install the latest version of OpenFunction #19
25+
26+
# 0.5.2
27+
28+
`[CHANGE]`
29+
30+
`[FEATURE]`
31+
32+
`[ENHANCEMENT]`
33+
- Change the default version of OpenFunction to the latest stable version
34+
- Add the `--force` option to force the operation
35+
- Use the spinner instead of the original process display
36+
- Adjust the function hierarchy to make some functions more generic
37+
38+
`[BUGFIX]`
39+
40+
# 0.5.3
41+
42+
`[CHANGE]`
43+
- Adjust the condition of Shipwright so that it is always enabled
44+
45+
`[FEATURE]`
46+
- Add `version` subcommand
47+
48+
`[ENHANCEMENT]`
49+
50+
`[BUGFIX]`
51+
- Fix the issue where the spinner was not terminating correctly
52+
- Use the correct prompts to circumvent exceptions when executing on unsupported operating systems

README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Visit [ofn releases page](https://github.com/OpenFunction/cli/releases/) to down
2424

2525
> Make sure you put the artifacts from the above step under the appropriate path in `PATH` and rename it `ofn`.
2626
27-
Run `ofn install --all` to implement a simple deployment. By default, this command will install the *v0.4.0* version of OpenFunction and skips the installation of components that already exist. To overwrite the existing components, use the `--upgrade` command.
27+
Run `ofn install --all` to implement a simple deployment. By default, this command will install the *latest stable* version of OpenFunction and skips the installation of components that already exist. To overwrite the existing components, use the `--upgrade` command.
2828

2929
For more information, refer to the [ofn install document](docs/install.md).
3030

@@ -106,20 +106,3 @@ The following components already exist:
106106
✓ OpenFunction - Completed!
107107
🚀 Completed in 1m17.729501739s.
108108
```
109-
110-
### Build OpenFunction CLI
111-
112-
To build the OpenFunction CLI——`ofn`, run `make build`.
113-
When the command is executed, you can find the artifact in the `. /dist` directory.
114-
Move it to an appropriate path in the `PATH` so that you can use it in your environment.
115-
116-
```shell
117-
~# make build
118-
go fmt ./...
119-
/opt/openfunction/fn-cli/bin/goimports -w cmd/ pkg/ testdata/
120-
go vet ./...
121-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X 'main.goversion=go version go1.16.7 linux/amd64'" \
122-
-o ./dist/fn_linux_amd64 cmd/main.go;
123-
```
124-
125-
###

RELEASE.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ This page describes the release process and the currently planned schedule for u
77
| release series | date (year-month-day) | release shepherd |
88
|----------------|--------------------------------------------|---------------------------------------------|
99
| v0.5.0 | 2021-12-21 | Laminar (GitHub: @tpiperatgod) |
10+
| v0.5.1 | 2021-12-22 | Laminar (GitHub: @tpiperatgod) |
11+
| v0.5.2 | 2022-01-03 | Laminar (GitHub: @tpiperatgod) |
12+
| v0.5.3 | 2022-02-14 | Laminar (GitHub: @tpiperatgod) |
1013

1114
# How to cut a new release
1215

@@ -45,22 +48,24 @@ Create a PR for the changes to be reviewed.
4548
## Publish the new release
4649

4750
For new minor and major releases, create the `release-<major>.<minor>` branch starting at the PR merge commit.
48-
From now on, all work happens on the `release-<major>.<minor>` branch.
4951

50-
Build the `ofn` cli:
52+
From now on, all work happens on the `release-<major>.<minor>` branch.
5153

52-
```bash
53-
make build
54-
```
5554
Tag the new release with a tag named `v<major>.<minor>.<patch>`, e.g. `v2.1.3`. Note the `v` prefix. You can do the tagging on the commandline:
5655

5756
```bash
58-
tag="$(< VERSION)"
57+
tag="v2.1.3" # Select a suitable and correct version
5958
git tag -a "${tag}" -m "${tag}"
6059
git push origin "${tag}"
6160
```
6261
Commit all the changes.
6362

63+
Build the `ofn` cli:
64+
65+
```bash
66+
make build
67+
```
68+
6469
Go to https://github.com/OpenFunction/cli/releases/new, associate the new release with the before pushed tag, paste in changes made to `CHANGELOG.md`, add cli file `ofn` and then click "Publish release".
6570

6671
For patch releases, submit a pull request to merge back the release branch into the `main` branch.

0 commit comments

Comments
 (0)