Created
December 24, 2017 12:48
-
-
Save jiro4989/48796065da54075d7878a87a0b14b66c to your computer and use it in GitHub Desktop.
goreleaserを使用してGitHubのリリースにデプロイするスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
builds: | |
- binary: appname | |
goos: | |
- windows | |
- darwin | |
- linux | |
goarch: | |
- amd64 | |
- 386 | |
archive: | |
format: tar.gz | |
replacements: | |
amd64: 64-bit | |
darwin: mac | |
linux: linux | |
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" | |
files: | |
- README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git tag $args[0] | |
$env:GITHUB_TOKEN = cat ".\res\token.txt" | |
goreleaser --rm-dist | |
go install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git tag $1 | |
GITHUB_TOKEN=`cat ./res/token.txt` | |
goreleaser --rm-dist | |
go install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment