Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 999afa5

Browse files
committed
Add auto-release. Close #6
1 parent a95337f commit 999afa5

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.circleci/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ jobs:
2323
command: |
2424
make test | tee ${TEST_RESULTS}/go-test.out
2525
26+
- deploy:
27+
requires:
28+
- test
29+
filters:
30+
tags:
31+
only: /v[0-9]+(\.[0-9]+)*/
32+
commands:
33+
- curl -sL https://git.io/goreleaser | bash
34+
2635
- store_artifacts:
2736
path: /tmp/test-results
2837
destination: raw-test-output

.goreleaser.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
builds:
3+
- binary: pody
4+
goos:
5+
- windows
6+
- darwin
7+
- linux
8+
goarch:
9+
- amd64

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"github.com/jroimartin/gocui"
1111
)
1212

13+
var version = "master"
1314
var LOG_MOD string = "pod"
1415
var NAMESPACE string = "default"
1516

version.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@ The following options can be passed to any command:
1919

2020
const APP = "Pody"
2121
const AUTHOR = "@JulienBreux"
22-
const VERSION = "0.1.0"
2322

2423
// Get full banner of version
2524
func versionFull() string {
26-
return fmt.Sprintf("%s %s - By %s", APP, VERSION, AUTHOR)
25+
return fmt.Sprintf("%s %s - By %s", APP, version, AUTHOR)
2726
}
2827

2928
// Get only banner (used in title bar view)
3029
func versionBanner() string {
31-
return fmt.Sprintf(" %s %s", APP, VERSION)
30+
return fmt.Sprintf(" %s %s", APP, version)
3231
}
3332

3433
// Get only author (used in title bar view)

0 commit comments

Comments
 (0)