Skip to content

Commit

Permalink
Merge pull request #18 from github/zip
Browse files Browse the repository at this point in the history
Zip build artifacts
  • Loading branch information
mastahyeti authored Sep 11, 2018
2 parents b58dc70 + f62c659 commit f91f4ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ before_build:
build_script:
- git describe --tags > version
- set /p GIT_VERSION= < version
- go build -o smimesign-%GIT_VERSION%-windows-%GOARCH%.exe -ldflags "-w -extldflags \"-static\" -extld=%EXTLD%" -i .
- go build -o smimesign-%GOARCH%.exe -ldflags "-w -extldflags \"-static\" -extld=%EXTLD%" -i .
- 7z a smimesign-%GIT_VERSION%-windows-%GOARCH%.zip smimesign-%GOARCH%.exe

test_script:
- go test -v ./...

artifacts:
- path: smimesign-%GIT_VERSION%-windows-%GOARCH%.exe
- path: smimesign-%GIT_VERSION%-windows-%GOARCH%.zip

deploy:
tag: $(GIT_VERSION)
Expand All @@ -52,7 +53,7 @@ deploy:
provider: GitHub
auth_token:
secure: sEpJVeD+tAT8soMS72SeGXEv1UVg7gG1ySy8rEfAO1T5HCaxD3jE6YoGmYOvKcbx
artifact: /.*\.exe/
artifact: /.*\.zip/
draft: false
prerelease: false
on:
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ install: ''

script:
- GIT_VERSION=$(git describe --tags)
- go build -o smimesign-$GIT_VERSION-macos .
- go build -o smimesign .
- tar czf smimesign-$GIT_VERSION-macos.tgz smimesign
- go test -v ./...

deploy:
name: v$GIT_VERSION
provider: releases
skip_cleanup: true
file: smimesign-$GIT_VERSION-macos
file: smimesign-$GIT_VERSION-macos.tgz
on:
tags: true
go: 1.x
Expand Down

0 comments on commit f91f4ae

Please sign in to comment.