Skip to content

Commit eaee9ac

Browse files
author
Tobias Meinhardt
committed
test goreleaser
1 parent de3b923 commit eaee9ac

File tree

3 files changed

+8
-29
lines changed

3 files changed

+8
-29
lines changed

.circleci/config.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,21 @@
11
version: 2
22

33
jobs:
4-
build:
4+
release:
55
docker:
66
- image: circleci/golang:1.11
77
environment:
88
GO111MODULE: "on"
99
working_directory: /go/src/github.com/meinto/git-semver
1010
steps:
1111
- checkout
12-
- run: go get ./...
13-
- run: ./.circleci/build.sh
14-
- save_cache:
15-
key: binaries
16-
paths:
17-
- ./build
18-
deploy:
19-
docker:
20-
- image: circleci/golang:1.11
21-
environment:
22-
GO111MODULE: "on"
23-
working_directory: /go/src/github.com/meinto/git-semver
24-
steps:
25-
- checkout
26-
- restore_cache:
27-
keys:
28-
- binaries
29-
- run: go get -u github.com/tcnksm/ghr
30-
- run: ghr -t $GITHUB_TOKEN v$(cat VERSION) build
12+
- run: curl -sL https://git.io/goreleaser | bash
3113

3214
workflows:
3315
version: 2
3416
build-and-deploy:
3517
jobs:
36-
- build:
37-
filters: # required since `deploy` has tag filters AND requires `build`
38-
tags:
39-
only: /^v.*$/
40-
- deploy:
41-
requires:
42-
- build
18+
- release:
4319
filters:
4420
branches:
4521
ignore: /.*/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
semver
22
build
3+
dist
34
buildAssets
45
glow.private.json
56

.goreleaser.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ before:
77
# you may remove this if you don't need go generate
88
- go generate ./...
99
builds:
10-
- env:
11-
- CGO_ENABLED=0
10+
-
11+
main: ./pkg/cli/main.go
12+
env:
13+
- CGO_ENABLED=0
1214
archive:
1315
replacements:
1416
darwin: Darwin

0 commit comments

Comments
 (0)