Skip to content

Commit

Permalink
Only release on tagged versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Oct 29, 2020
1 parent 95d002d commit d620d6e
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .circleci/config.yml
@@ -1,10 +1,21 @@
version: 2
version: 2.1
workflows:
main:
jobs:
- build:
- release:
# Only run this job on git tag pushes
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
jobs:
build:
environment:
GO111MODULE: "on"
docker:
- image: circleci/golang:1.14
- image: circleci/golang:1.15
working_directory: /go/src/github.com/alecthomas/chroma
steps:
- checkout
Expand All @@ -23,8 +34,9 @@ jobs:
command: |
go build ./...
./bin/golangci-lint run
- run:
name: Release
command: |
git clean -fdx .
curl -sL https://git.io/goreleaser | bash && goreleaser
release:
docker:
- image: circleci/golang:1.15
steps:
- checkout
- run: curl -sL https://git.io/goreleaser | bash

0 comments on commit d620d6e

Please sign in to comment.