Skip to content

Instantly share code, notes, and snippets.

@jiro4989
Created December 24, 2017 12:48
Show Gist options
  • Save jiro4989/48796065da54075d7878a87a0b14b66c to your computer and use it in GitHub Desktop.
Save jiro4989/48796065da54075d7878a87a0b14b66c to your computer and use it in GitHub Desktop.
goreleaserを使用してGitHubのリリースにデプロイするスクリプト
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
git tag $args[0]
$env:GITHUB_TOKEN = cat ".\res\token.txt"
goreleaser --rm-dist
go install
#!/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