This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from cybozu-go/update-dependencies
Update dependencies
- Loading branch information
Showing
8 changed files
with
485 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
release: | ||
name: Release on GitHub | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Create release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
version=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g") | ||
if echo $version | grep -q -e '-'; then prerelease=-p; fi | ||
gh release create $version $prerelease \ | ||
-t "Release $version" \ | ||
-n "See [CHANGELOG.md](./CHANGELOG.md) for details." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
Release procedure | ||
================= | ||
|
||
This document describes how to release a new version of well. | ||
|
||
Versioning | ||
---------- | ||
|
||
Follow [semantic versioning 2.0.0][semver] to choose the new version number. | ||
|
||
Prepare change log entries | ||
-------------------------- | ||
|
||
Add notable changes since the last release to [CHANGELOG.md](CHANGELOG.md). | ||
It should look like: | ||
|
||
```markdown | ||
(snip) | ||
## [Unreleased] | ||
|
||
### Added | ||
- Implement ... (#35) | ||
|
||
### Changed | ||
- Fix a bug in ... (#33) | ||
|
||
### Removed | ||
- Deprecated `-option` is removed ... (#39) | ||
|
||
(snip) | ||
``` | ||
|
||
Bump version | ||
------------ | ||
|
||
1. Determine a new version number. Then set `VERSION` variable. | ||
|
||
```console | ||
# Set VERSION and confirm it. It should not have "v" prefix. | ||
$ VERSION=x.y.z | ||
$ echo $VERSION | ||
``` | ||
|
||
2. Make a branch to release | ||
|
||
```console | ||
$ git neco dev "bump-$VERSION" | ||
``` | ||
|
||
3. Edit `CHANGELOG.md` for the new version ([example][]). | ||
4. Commit the change and push it. | ||
|
||
```console | ||
$ git commit -a -m "Bump version to $VERSION" | ||
$ git neco review | ||
``` | ||
|
||
5. Merge this branch. | ||
6. Add a git tag to the main HEAD, then push it. | ||
|
||
```console | ||
# Set VERSION again. | ||
$ VERSION=x.y.z | ||
$ echo $VERSION | ||
|
||
$ git checkout main | ||
$ git pull | ||
$ git tag -a -m "Release v$VERSION" "v$VERSION" | ||
|
||
# Make sure the release tag exists. | ||
$ git tag -ln | grep $VERSION | ||
|
||
$ git push origin "v$VERSION" | ||
``` | ||
|
||
GitHub actions will build and push artifacts such as container images and | ||
create a new GitHub release. | ||
|
||
[semver]: https://semver.org/spec/v2.0.0.html | ||
[example]: https://github.com/cybozu-go/etcdpasswd/commit/77d95384ac6c97e7f48281eaf23cb94f68867f79 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
module github.com/cybozu-go/well | ||
|
||
require ( | ||
github.com/BurntSushi/toml v0.4.1 | ||
github.com/BurntSushi/toml v1.2.0 | ||
github.com/cybozu-go/log v1.6.1 | ||
github.com/cybozu-go/netutil v1.4.2 | ||
github.com/cybozu-go/netutil v1.4.3 | ||
github.com/spf13/pflag v1.0.5 | ||
github.com/spf13/viper v1.10.0 | ||
golang.org/x/net v0.0.0-20211209124913-491a49abca63 | ||
github.com/spf13/viper v1.12.0 | ||
golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b | ||
) | ||
|
||
go 1.13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.