Skip to content

Commit

Permalink
chore(release): Release version 0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Aug 4, 2024
2 parents 00c1a68 + 72bd141 commit 1eabade
Show file tree
Hide file tree
Showing 15 changed files with 74 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0 OR MIT

[tool.bumpversion]
current_version = "0.3.4"
current_version = "0.3.5"

[[tool.bumpversion.files]]
filename = "cmd/glzip/cli.go"
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ body:
attributes:
label: Go version
description: Output of `go version`.
placeholder: 1.22
placeholder: "1.22"
validations:
required: true

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
name: CD

on:
pull_request:
push:
branches:
- "develop"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:

permissions:
contents: write
Expand All @@ -37,20 +35,20 @@ jobs:
gem install asciidoctor
asciidoctor -V
- name: Check `.goreleaser.yaml`
uses: goreleaser/goreleaser-action@v5.0.0
uses: goreleaser/goreleaser-action@v6.0.0
with:
distribution: "goreleaser"
version: "latest"
args: check
- name: Check GoReleaser
uses: goreleaser/goreleaser-action@v5.0.0
uses: goreleaser/goreleaser-action@v6.0.0
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
distribution: "goreleaser"
version: "latest"
args: release --clean --snapshot
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5.0.0
uses: goreleaser/goreleaser-action@v6.0.0
if: startsWith(github.ref, 'refs/tags/')
with:
distribution: "goreleaser"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
with:
go-version: "stable"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v5.1.0
uses: golangci/golangci-lint-action@v6.1.0
with:
version: "latest"
args: -E gofmt,goimports -v
2 changes: 1 addition & 1 deletion .github/workflows/REUSE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v3.0.0
uses: fsfe/reuse-action@v4.0.0
5 changes: 4 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ builds:
- arm64

archives:
- format: tar.gz
- format: tar.zst
# use zip for windows archives
format_overrides:
- goos: windows
Expand All @@ -42,6 +42,9 @@ archives:
- LICENSES/*
- README.md

checksum:
algorithm: sha3-512

changelog:
sort: asc
filters:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ All notable changes to this project will be documented in this file.
The format is based on https://keepachangelog.com/[Keep a Changelog], and this
project adheres to https://semver.org/[Semantic Versioning].

== {compare-url}/v0.3.4\...v0.3.5[0.3.5] - 2024-08-04

=== Changed

* Update man pages

== {compare-url}/v0.3.3\...v0.3.4[0.3.4] - 2024-05-02

=== Changed
Expand Down
9 changes: 7 additions & 2 deletions CONTRIBUTING.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
= Contribution Guide
:git-flow-url: https://nvie.com/posts/a-successful-git-branching-model/
:commit-messages-guide-url: https://github.com/RomuloOliveira/commit-messages-guide
:conventionalcommits-url: https://www.conventionalcommits.org/en/v1.0.0/

Thank you for your interest in contributing to this project! If you would like
to contribute to this project, please follow the instructions below if possible.

== Branching model

Expand All @@ -14,7 +18,8 @@ The branching model of this project is based on the {git-flow-url}[git-flow].

=== Commit message

Please see the {commit-messages-guide-url}[Commit messages guide].
Please see the {commit-messages-guide-url}[Commit messages guide] and the
{conventionalcommits-url}[Conventional Commits].

== Submitting a pull request

Expand All @@ -23,7 +28,7 @@ Please see the {commit-messages-guide-url}[Commit messages guide].
. Create your patch. If your change is a feature or a bugfix, please add a test
case if possible. Note that the change must pass the CI.
. Please update the copyright information if possible. This project is
compliant with version 3.0 of the
compliant with version 3.2 of the
https://reuse.software/spec/[_REUSE Specification_].
https://github.com/fsfe/reuse-tool[`reuse`] is useful for updating the
copyright information.
Expand Down
24 changes: 24 additions & 0 deletions LICENSE-APACHE → LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,27 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

---

MIT License

Copyright (c) 2024 Shun Sakai

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 0 additions & 21 deletions LICENSE-MIT

This file was deleted.

21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,28 @@ lzip format compressed files.
go install github.com/sorairolake/lzip-go/cmd/glzip@latest
```

#### Via a package manager

| OS | Package manager | Command |
| ----- | --------------- | ------------------------------------ |
| _Any_ | [Homebrew] | `brew install sorairolake/tap/glzip` |

#### From binaries

The [release page] contains pre-built binaries for Linux, macOS, Windows and
others.

#### How to build

To build the command-line utility:

```sh
# command-line utility
just build-cmd
```

# man page
To build a man page:

```sh
just build-man
```

The man page is generated in `docs/man/man1`. Note that [Asciidoctor] is
required when building the man page.

### Usage

Please see [`glzip(1)`].
Expand Down Expand Up @@ -95,7 +96,7 @@ Copyright © 2024 Shun Sakai (see [AUTHORS.adoc])
This package is distributed under the terms of either the _Apache License 2.0_
or the _MIT License_.

This project is compliant with version 3.0 of the [_REUSE Specification_]. See
This project is compliant with version 3.2 of the [_REUSE Specification_]. See
copyright notices of individual files for more details on copyright and
licensing information.

Expand All @@ -107,8 +108,8 @@ licensing information.
[lzip compressed format]: https://www.nongnu.org/lzip/manual/lzip_manual.html#File-format
[Go]: https://go.dev/
[`example_test.go`]: example_test.go
[Homebrew]: https://brew.sh/
[release page]: https://github.com/sorairolake/lzip-go/releases
[Asciidoctor]: https://asciidoctor.org/
[`glzip(1)`]: docs/man/man1/glzip.1.adoc
[CHANGELOG.adoc]: CHANGELOG.adoc
[CONTRIBUTING.adoc]: CONTRIBUTING.adoc
Expand Down
2 changes: 1 addition & 1 deletion cmd/glzip/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/sorairolake/lzip-go"
)

const version = "0.3.4"
const version = "0.3.5"

type options struct {
version bool
Expand Down
2 changes: 1 addition & 1 deletion cmd/glzip/testdata/version.ct
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# SPDX-License-Identifier: Apache-2.0 OR MIT

$ glzip -version
glzip 0.3.4
glzip 0.3.5
16 changes: 11 additions & 5 deletions docs/man/man1/glzip.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

= glzip(1)
// Specify in UTC.
:docdate: 2024-04-14
:docdate: 2024-08-01
:doctype: manpage
:mansource: glzip 0.3.4
:mansource: glzip 0.3.5
:manmanual: General Commands Manual
:lzip-spec-url: https://www.nongnu.org/lzip/manual/lzip_manual.html#File-format

== NAME

Expand All @@ -19,8 +20,13 @@ glzip - reduces the size of files

== DESCRIPTION

*{manname}* is a simple command-line utility for reading and writing of lzip
format compressed files.
*{manname}* is a simple command-line utility for reading and writing of
{lzip-spec-url}[lzip format] compressed files.

The lzip format uses a simplified form of the LZMA stream format. In most
cases, *{manname}* achieves better compression ratios than alternatives such as
*gzip*(1) and *bzip2*(1). Decompression speed is faster than *bzip2*(1), but
slower than *gzip*(1).

== POSITIONAL ARGUMENTS

Expand Down Expand Up @@ -112,4 +118,4 @@ WARRANTY, to the extent permitted by law.

== SEE ALSO

*lzip*(1)
*bzip2*(1), *gzip*(1), *lzip*(1)
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# SPDX-License-Identifier: Apache-2.0 OR MIT

alias all := default
alias build-cmd := build-cmd-debug

# Run default recipe
default: test
Expand Down

0 comments on commit 1eabade

Please sign in to comment.