mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 02:15:12 +00:00
chore: Add release process
This commit is contained in:
parent
ec1d4dec3c
commit
8292ab7d2c
4 changed files with 9 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,5 +1,6 @@
|
|||
/tmp
|
||||
/.tmp
|
||||
/dist
|
||||
|
||||
# Created by https://www.gitignore.io/api/osx,macos,go
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,4 @@ branches:
|
|||
only:
|
||||
- master
|
||||
after_success:
|
||||
- echo "TODO release process"
|
||||
# - gox -os "darwin linux windows" -arch "amd64" -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}" .
|
||||
# - ghr --username tsuyoshiwada --token $GITHUB_TOKEN --replace `grep 'Version =' version.go | sed -E 's/.*"(.+)"$$/\1/'` dist/
|
||||
- ./scripts/release.sh
|
||||
|
|
|
|||
1
Makefile
1
Makefile
|
|
@ -8,6 +8,7 @@ deps:
|
|||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf ./vendor/
|
||||
rm -rf ./dist/
|
||||
rm -rf ./git-chglog
|
||||
rm -rf $(GOPATH)/bin/git-chglog
|
||||
|
||||
|
|
|
|||
6
scripts/release.sh
Executable file
6
scripts/release.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ "$TRAVIS_BRANCH" == "master" ]]; then
|
||||
gox -os="darwin linux windows" -arch="amd64 386" -output="$(pwd)/dist/{{.Dir}}_{{.OS}}_{{.Arch}}" ./cmd/git-chglog
|
||||
ghr --username git-chglog --token $GITHUB_TOKEN --replace `grep 'Version =' ./cmd/git-chglog/version.go | sed -E 's/.*"(.+)"$$/\1/'` dist/
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue