Skip to content

Commit

Permalink
task release
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Dec 19, 2022
1 parent 9218730 commit a5ee85c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ builds:
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
snapshot:
Expand Down
25 changes: 25 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# https://taskfile.dev

version: "3"

vars:
GREETING: Hello, World!

tasks:
install-goreleaser:
status:
- which goreleaser
cmds:
- go install github.com/goreleaser/goreleaser@latest
release:
desc: generate and upload a new release
deps:
- install-goreleaser
cmds:
- which gh
- test {{.CLI_ARGS}}
- git tag {{.CLI_ARGS}}
- goreleaser release --skip-publish --rm-dist
- git push --tags
- gh release create --generate-notes {{.CLI_ARGS}}
- gh release upload {{.CLI_ARGS}} ./dist/*.tar.gz ./dist/*_checksums.txt

0 comments on commit a5ee85c

Please sign in to comment.