Add Drone and Goreleaser
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Jake 2022-01-23 10:16:29 +00:00
parent 06d64bd3cb
commit f9b0d054dc
4 changed files with 61 additions and 0 deletions

22
.drone.yml Normal file
View File

@ -0,0 +1,22 @@
kind: pipeline
name: default
type: docker
steps:
- name: fetch
image: docker:git
commands:
- git fetch --tags
- name: test
image: golang
commands:
- go test -race ./... -cover
- name: release
image: goreleaser/goreleaser
environment:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- goreleaser release
when:
event: tag

View File

@ -7,3 +7,6 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{yml,yaml}]
indent_size = 2

2
.gitignore vendored
View File

@ -210,3 +210,5 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk
dist/

34
.goreleaser.yml Normal file
View File

@ -0,0 +1,34 @@
before:
hooks:
- go mod tidy
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'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
gitea_urls:
api: https://tildegit.org/api/v1/
download: https://tildegit.org/
release:
gitea:
owner: jakew
name: wordle