Skip to content

Commit 1f4724e

Browse files
committed
Ensure CircleCI release job works, and uploads Homebrew formula
1 parent a63bac2 commit 1f4724e

File tree

4 files changed

+27
-30
lines changed

4 files changed

+27
-30
lines changed

.circleci/config.yml

+13-16
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
version: 2
2-
jobs:
3-
build:
1+
version: 2.1
2+
3+
executors:
4+
go:
45
docker:
56
- image: circleci/golang:1.12
67
environment:
78
- GO111MODULE=on
9+
- GITHUB_TOKEN=${GITHUB_TOKEN}
810
working_directory: /go/src/github.com/oleiade/trousseau
11+
12+
jobs:
13+
build:
14+
executor: go
915
steps:
1016
- checkout
1117
- restore_cache:
@@ -19,19 +25,10 @@ jobs:
1925
paths:
2026
- "/go/pkg/mod"
2127
release:
22-
docker:
23-
- image: circleci/golang:1.12
24-
environment:
25-
- GO111MODULE=on
26-
- GITHUB_TOKEN=${GITHUB_TOKEN}
27-
working_directory: /go/src/github.com/oleiade/trousseau
28+
executor: go
2829
steps:
2930
- checkout
30-
- restore_cache:
31-
keys:
32-
- go-mod-v1-{{ checksum "go.sum" }}
33-
- run: go mod download
34-
- run: goreleaser
31+
- run: curl -sL https://git.io/goreleaser | bash
3532
workflows:
3633
version: 2
3734
build-n-deploy:
@@ -40,11 +37,11 @@ workflows:
4037
filters:
4138
tags:
4239
only: /.*/
43-
- deploy:
40+
- release:
4441
requires:
4542
- build
4643
filters:
4744
tags:
48-
only: /^v.*/
45+
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
4946
branches:
5047
ignore: /.*/

.goreleaser.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,19 @@ archives:
1818
windows: Windows
1919
386: i386
2020
amd64: x86_64
21-
signs:
22-
- artifacts: checksum
21+
# snapcrafts:
22+
# - name: trousseau
23+
# summary: File based encrypted key-value store
24+
# description: Trousseau is an encrypted key-value store designed to be a simple, safe and trustworthy place for your data.
25+
# license: MIT
26+
# publish: false
27+
nfpms:
28+
- homepage: https://github.com/oleiade/trousseau
29+
maintainer: Theo Crevon <[email protected]>
30+
description: Trousseau is an encrypted key-value store designed to be a simple, safe and trustworthy place for your data.
31+
license: MIT
32+
formats:
33+
- deb
2334
brews:
2435
- name: trousseau
2536
github:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ $ sudo apt-get update && sudo apt-get install trousseau
6464
If you're using homebrew just proceed to installation using the provided formula:
6565

6666
```bash
67-
$ brew install https://raw.githubusercontent.com/oleiade/trousseau/master/trousseau.rb
67+
brew install oleiade/tap/trousseau
6868
```
6969

7070
##### Binaries

trousseau.rb

-11
This file was deleted.

0 commit comments

Comments
 (0)