Merge pull request 'Enable CI for releasing the tool and changie for handling changelog' (#1) from ci-for-release into main
Reviewed-on: #1
This commit is contained in:
commit
f9fb2b1e10
6
.changes/header.tpl.md
Normal file
6
.changes/header.tpl.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Changelog
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
||||||
|
and is generated by [Changie](https://github.com/miniscruff/changie).
|
0
.changes/unreleased/.gitkeep
Normal file
0
.changes/unreleased/.gitkeep
Normal file
3
.changes/v0.1.0.md
Normal file
3
.changes/v0.1.0.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
## v0.1.0 - 2024-01-08
|
||||||
|
### Added
|
||||||
|
* Initiate changie versioning
|
26
.changie.yaml
Normal file
26
.changie.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
changesDir: .changes
|
||||||
|
unreleasedDir: unreleased
|
||||||
|
headerPath: header.tpl.md
|
||||||
|
changelogPath: CHANGELOG.md
|
||||||
|
versionExt: md
|
||||||
|
versionFormat: '## {{.Version}} - {{.Time.Format "2006-01-02"}}'
|
||||||
|
kindFormat: '### {{.Kind}}'
|
||||||
|
changeFormat: '* {{.Body}}'
|
||||||
|
kinds:
|
||||||
|
- label: Added
|
||||||
|
auto: minor
|
||||||
|
- label: Changed
|
||||||
|
auto: major
|
||||||
|
- label: Deprecated
|
||||||
|
auto: minor
|
||||||
|
- label: Removed
|
||||||
|
auto: major
|
||||||
|
- label: Fixed
|
||||||
|
auto: patch
|
||||||
|
- label: Security
|
||||||
|
auto: patch
|
||||||
|
newlines:
|
||||||
|
afterChangelogHeader: 1
|
||||||
|
beforeChangelogVersion: 1
|
||||||
|
endOfVersion: 1
|
||||||
|
envPrefix: CHANGIE_
|
35
.gitea/workflows/release/build-and-release.yaml
Normal file
35
.gitea/workflows/release/build-and-release.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: Release binary for cl-cli
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
- name: Install rust toolchain
|
||||||
|
uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||||
|
- name: Build binaries
|
||||||
|
run: cargo build --release
|
||||||
|
- name: Read release content
|
||||||
|
uses: https://github.com/jaywcjlove/github-action-read-file@main
|
||||||
|
id: read_release
|
||||||
|
with:
|
||||||
|
path: .changes/${{ github.ref_name }}.md
|
||||||
|
- name: Setup go for using go gitea actions
|
||||||
|
uses: https://github.com/actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '>=1.20.1'
|
||||||
|
- name: Use Go Action to release
|
||||||
|
id: use-go-action
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
target/release/cl-cli
|
||||||
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
|
body: |
|
||||||
|
${{ steps.read_release.outputs.content }}
|
11
CHANGELOG.md
Normal file
11
CHANGELOG.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Changelog
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
||||||
|
and is generated by [Changie](https://github.com/miniscruff/changie).
|
||||||
|
|
||||||
|
|
||||||
|
## v0.1.0 - 2024-01-08
|
||||||
|
### Added
|
||||||
|
* Initiate changie versioning
|
Loading…
Reference in New Issue
Block a user