Skip to content

Commit

Permalink
Merge branch 'goreleaser' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Dec 11, 2020
2 parents c0ccd51 + 3e277d3 commit 03aab08
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 10 deletions.
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: 2.1

orbs:
go: circleci/go@1

jobs:
test:
executor:
name: go/default
tag: '1.15'
steps:
- run: go version
- checkout
- go/mod-download-cached
- go/test:
short: true
verbose: true

release:
executor:
name: go/default
tag: '1.15'
steps:
- run: go version
- checkout
- run: curl -sL https://git.io/goreleaser | bash

release-dry-run:
executor:
name: go/default
tag: '1.15'
steps:
- run: go version
- checkout
- run: curl -sL https://git.io/goreleaser | bash -s check
- run: curl -sL https://git.io/goreleaser | bash -s -- --snapshot --skip-publish --rm-dist
- store_artifacts:
path: dist/

workflows:
test:
jobs:
- test
- release-dry-run
- release:
filters:
branches:
ignore: /.*/
tags:
only: /[0-9]+(\.[0-9]+)*(-.*)*/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
trellis-cyberduck
dist/
26 changes: 17 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: trellis-cyberduck
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
#checksum:
# name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
Expand All @@ -30,3 +24,17 @@ changelog:
exclude:
- '^docs:'
- '^test:'
brews:
- tap:
owner: itinerisltd
name: homebrew-tap
folder: Formula
homepage: https://github.com/ItinerisLtd/trellis-cyberduck
description: Trellis commands for Cyberduck
license: MIT
install: |
bin.install "trellis-cyberduck"
test: |
system "#{bin}/trellis-cyberduck --version"
release:
prerelease: auto
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
var rootCmd = &cobra.Command{
Use: "trellis-cyberduck",
Version: "v0.1.0",
Short: "Commands for Cyberduck",
Short: "Trellis commands for Cyberduck",
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down

0 comments on commit 03aab08

Please sign in to comment.