Skip to content
Snippets Groups Projects
Commit 8d18cb6c authored by Oliver's avatar Oliver
Browse files

try to fix github binary release

parent 7cb8e02e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -107,7 +107,8 @@ steps:
- name: release-github-binaries
image: "golang:1.12"
commands:
- './build-github-binaries.sh'
- "apt-get update && apt-get install -y zip"
- "./build-github-binaries.sh"
when:
event:
- tag
Loading
Loading
@@ -19,6 +19,11 @@ gox -rebuild --osarch="windows/amd64" -ldflags "$GO_LDFLAGS" -output "dist/redis
gox -rebuild --osarch="windows/386" -ldflags "$GO_LDFLAGS" -output "dist/redis_exporter" && cd dist && zip -9 redis_exporter-$DRONE_TAG.windows-386.zip redis_exporter.exe && rm redis_exporter.exe && cd ..
 
echo "Upload to Github"
pwd
ls -la
ls -la dist/
ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $DRONE_TAG dist/
 
echo "Done"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment