Skip to content

Commit 8a187d5

Browse files
committed
0.0.7-dev.7
1 parent 1fbc33d commit 8a187d5

File tree

4 files changed

+67
-48
lines changed

4 files changed

+67
-48
lines changed

.commitlog.release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.7-dev.6
1+
0.0.7-dev.7
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Binary Builds Pre-Releases
1+
name: Changelogs
22

33
on:
44
push:
55
tags:
6-
- 'v*-dev.*'
6+
- 'v*'
77

88
jobs:
99
pre-release:
@@ -24,20 +24,10 @@ jobs:
2424
tar -xvzf clog.tar.gz
2525
chmod +x commitlog
2626
./commitlog . > CHANGELOG.txt
27-
- name: Generate build files
28-
uses: thatisuday/go-cross-build@v1
29-
with:
30-
platforms: "linux/amd64, linux/arm, linux/arm64, windows/amd64, darwin/amd64"
31-
package: ""
32-
name: commitlog
33-
compress: "true"
34-
dest: dist
3527
- name: Release
3628
uses: softprops/action-gh-release@v1
3729
if: startsWith(github.ref, 'refs/tags/')
3830
with:
39-
prerelease: true
4031
body_path: CHANGELOG.txt
41-
files: dist/*
4232
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/create-binaries.yml

Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,47 @@ name: Binary Builds
22

33
on:
44
push:
5-
tags-ignore:
6-
- 'v*-dev.*'
5+
tags:
6+
- '*'
77

88
jobs:
9-
pre-release:
10-
name: Pre Release
9+
release-linux-amd64:
10+
name: release linux/amd64
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Get current date
14-
id: date
15-
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
16-
- name: Checkout the repository
17-
uses: actions/checkout@v2
18-
with:
19-
fetch-depth: 0
20-
- name: Generate Change Log
21-
id: generate_log
22-
run: |
23-
curl -L https://github.com/barelyhuman/commitlog/releases/download/v0.0.7-dev.4/commitlog-linux-amd64.tar.gz -o clog.tar.gz
24-
tar -xvzf clog.tar.gz
25-
chmod +x commitlog
26-
./commitlog . > CHANGELOG.txt
27-
- name: Generate build files
28-
uses: thatisuday/go-cross-build@v1
29-
with:
30-
platforms: "linux/amd64, linux/arm, linux/arm64, windows/amd64, darwin/amd64"
31-
package: ""
32-
name: commitlog
33-
compress: "true"
34-
dest: dist
35-
- name: Release
36-
uses: softprops/action-gh-release@v1
37-
if: startsWith(github.ref, 'refs/tags/')
38-
with:
39-
body_path: CHANGELOG.txt
40-
files: dist/*
41-
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
- uses: actions/checkout@v2
14+
- uses: wangyoucao577/[email protected]
15+
with:
16+
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
goos: linux
18+
goarch: amd64
19+
release-linux-arm64:
20+
name: release linux/arm64
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: wangyoucao577/[email protected]
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
goos: linux
28+
goarch: arm64
29+
release-darwin-amd64:
30+
name: release darwin/amd64
31+
runs-on: macOS-latest
32+
steps:
33+
- uses: actions/checkout@v2
34+
- uses: wangyoucao577/[email protected]
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
goos: darwin
38+
goarch: amd64
39+
release-darwin-arm64:
40+
name: release darwin/arm64
41+
runs-on: macOS-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: wangyoucao577/[email protected]
45+
with:
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
goos: darwin
48+
goarch: arm64

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,29 @@ da6d837eb3134f836bfbe401de7882f2e0818ba8 - Create LICENSE
120120
b0f1b1d2bc4265cb72b70b3ae5b60f8e65f47b12 - initial commit
121121
```
122122
123+
## Subcommands
124+
125+
#### `release` (beta / experimental)
126+
127+
As of **0.0.7-dev.7** the cli comes with a sub command to maintain version for the repository.
128+
129+
The command will
130+
- create the `.commitlog.release` file to handle and persit the version
131+
- handle the semver increments
132+
- create a new commit and tag for the same
133+
134+
```sh
135+
$ commitlog release -beta -beta-suffix dev
136+
Current Version:
137+
v0.0.7-dev.6
138+
New Version
139+
0.0.7-dev.7
140+
? Do you want me to create a commit for the new version?: Yes
141+
✔ Updated Version
142+
```
143+
144+
145+
123146
## Current Limitations
124147
125148
- No Tests added so is probably unstable right now ( If you'd like to help writing tests, feel free to raise a PR)

0 commit comments

Comments
 (0)