mirror of https://github.com/liamg/aminal.git
fixed darwin build
This commit is contained in:
parent
74ea19eb58
commit
7a01195fd6
|
@ -46,12 +46,10 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: "Publish Release on GitHub"
|
name: "Publish Release on GitHub"
|
||||||
command: |
|
command: |
|
||||||
go get github.com/tcnksm/ghr
|
|
||||||
mkdir -p release
|
mkdir -p release
|
||||||
ls -la artifacts/linux
|
|
||||||
ls -la artifacts/darwin
|
|
||||||
cp artifacts/linux/* release/
|
cp artifacts/linux/* release/
|
||||||
cp artifacts/darwin/* release/
|
cp artifacts/darwin/* release/
|
||||||
|
go get github.com/tcnksm/ghr
|
||||||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} release/
|
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} release/
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -36,4 +36,4 @@ build-linux:
|
||||||
.PHONY: build-darwin
|
.PHONY: build-darwin
|
||||||
build-darwin:
|
build-darwin:
|
||||||
mkdir -p bin/darwin
|
mkdir -p bin/darwin
|
||||||
xgo -x -v -ldflags "-X main.Version='${CIRCLE_TAG}'" --targets=darwin/amd64 -out bin/darwin/${BINARY}-darwin-amd64 .
|
xgo -x -v -ldflags "-X main.Version='${CIRCLE_TAG}'" --targets=darwin/amd64 -out bin/darwin/${BINARY} .
|
||||||
|
|
Loading…
Reference in New Issue