Skip to content

Commit d620d6e

Browse files
committed
Only release on tagged versions.
1 parent 95d002d commit d620d6e

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

Diff for: .circleci/config.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
version: 2
1+
version: 2.1
2+
workflows:
3+
main:
4+
jobs:
5+
- build:
6+
- release:
7+
# Only run this job on git tag pushes
8+
filters:
9+
branches:
10+
ignore: /.*/
11+
tags:
12+
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
213
jobs:
314
build:
415
environment:
516
GO111MODULE: "on"
617
docker:
7-
- image: circleci/golang:1.14
18+
- image: circleci/golang:1.15
819
working_directory: /go/src/github.com/alecthomas/chroma
920
steps:
1021
- checkout
@@ -23,8 +34,9 @@ jobs:
2334
command: |
2435
go build ./...
2536
./bin/golangci-lint run
26-
- run:
27-
name: Release
28-
command: |
29-
git clean -fdx .
30-
curl -sL https://git.io/goreleaser | bash && goreleaser
37+
release:
38+
docker:
39+
- image: circleci/golang:1.15
40+
steps:
41+
- checkout
42+
- run: curl -sL https://git.io/goreleaser | bash

0 commit comments

Comments
 (0)