Skip to content

Commit

Permalink
appveyor CI to create artifacts also for non tagged versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dh1tw committed Jul 13, 2019
1 parent 71a3d7b commit 9dbb92d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,18 @@ build_script:
after_build:
- .\ci\build-windows-bundle.bat
- cmd: dir
- cmd: dir release
artifacts:
- path: remoteAudio-v%APPVEYOR_REPO_TAG_NAME%-%GOOS%-%GOARCH%.zip
name: remoteAudio
name: remoteAudio-release
- path: remoteAudio-commit-%APPVEYOR_REPO_COMMIT%-%GOOS%-%GOARCH%.zip
name: remoteAudio-interim-build
deploy:
description: ''
provider: GitHub
auth_token:
secure: j2rLmFvQb9PPmy5aj0OXu2JzSyLEsusZDPMaAnmkYk+wQMjJm+xW2atWuvGhvNZY
artifact: remoteAudio
artifact: remoteAudio-release
draft: false
prerelease: false
on:
Expand Down
3 changes: 2 additions & 1 deletion ci/build-windows-bundle.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ REM zip everything
%MSYS_PATH%\usr\bin\bash -lc "cd /c/gopath/src/github.com/dh1tw/remoteAudio/release && 7z a -tzip remoteAudio-v$APPVEYOR_REPO_TAG_NAME-$GOOS-$GOARCH.zip *"

REM copy it into the build folder
xcopy %GOPATH%\src\github.com\dh1tw\remoteAudio\release\remoteAudio-v%APPVEYOR_REPO_TAG_NAME%-%GOOS%-%GOARCH%.zip %APPVEYOR_BUILD_FOLDER_ORIGINAL%\ /e /i > nul
copy %GOPATH%\src\github.com\dh1tw\remoteAudio\release\remoteAudio-v%APPVEYOR_REPO_TAG_NAME%-%GOOS%-%GOARCH%.zip %APPVEYOR_BUILD_FOLDER_ORIGINAL%
copy %GOPATH%\src\github.com\dh1tw\remoteAudio\release\remoteAudio-v%APPVEYOR_REPO_TAG_NAME%-%GOOS%-%GOARCH%.zip %APPVEYOR_BUILD_FOLDER_ORIGINAL%\remoteAudio-commit-%APPVEYOR_REPO_COMMIT%-%GOOS%-%GOARCH%.zip

0 comments on commit 9dbb92d

Please sign in to comment.