Skip to content

Commit

Permalink
Merge pull request #1 from cybozu-go/bump-0.1.0
Browse files Browse the repository at this point in the history
Bump version to 0.1.0
  • Loading branch information
ymmt2005 committed Jul 24, 2021
2 parents d37ebcd + 9511d00 commit e514b10
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 8 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release
on:
push:
tags:
- 'v*'
env:
go-version: 1.16
jobs:
image:
name: Push Container Image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build images
run: |
docker build -t accurate:dev .
- name: Login to ghcr.io
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Push images
run: |
TAG=${GITHUB_REF#refs/tags/v}
docker tag accurate:dev ghcr.io/cybozu-go/accurate:$TAG
docker push ghcr.io/cybozu-go/accurate:$TAG
release:
name: Release on GitHub
needs: image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ env.go-version }}
- run: make release-build
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tagname="${GITHUB_REF#refs/tags/}"
if echo ${{ github.ref }} | grep -q -e '-'; then prerelease=-p; fi
gh release create -t "Release $tagname" $prerelease \
-n "See [CHANGELOG.md](./CHANGELOG.md) for details." \
"$tagname" build/*
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Added
### Changed
### Removed
## [0.1.0]

[Unreleased]: https://github.com/cybozu-go/accurate/compare/4b825dc642cb6eb9a060e54bf8d69288fbee4904...HEAD
This is the first public release.

[Unreleased]: https://github.com/cybozu-go/accurate/compare/v0.1.0...HEAD
[0.1.0]: https://github.com/cybozu-go/accurate/compare/4b825dc642cb6eb9a060e54bf8d69288fbee4904...v0.1.0
4 changes: 2 additions & 2 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ It should look like:
2. Make a branch to release

```console
$ git neco dev "$VERSION"
$ git neco dev "bump-$VERSION"
```

3. Update version strings in `kustomization.yaml` and `version.go`.
3. Update version strings in `kustomization.yaml` and `version.go` in the top directory.
4. Edit `CHANGELOG.md` for the new version ([example][]).
5. Commit the change and push it.

Expand Down
2 changes: 1 addition & 1 deletion kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ configMapGenerator:

images:
- name: ghcr.io/cybozu-go/accurate
newTag: 0.0.1
newTag: 0.1.0
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package accurate

// Version represents the version of accurate.
const Version = "0.0.1"
const Version = "0.1.0"

0 comments on commit e514b10

Please sign in to comment.