1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

Add appveyor binary deploy. (#556)

Also switch to release mode.
This commit is contained in:
Ryan Dahl 2018-08-22 13:42:04 -04:00 committed by GitHub
parent ca4ace6b1f
commit 355da89eae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,8 +7,9 @@ clone_depth: 1
environment:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
DENO_BUILD_MODE: debug
DENO_BUILD_PATH: $(APPVEYOR_BUILD_FOLDER)\out\debug
DENO_BUILD_MODE: release
DENO_BUILD_PATH: $(APPVEYOR_BUILD_FOLDER)\out\release
RELEASE_ARTIFACT: $(APPVEYOR_BUILD_FOLDER)\out\release\deno_win_x64.zip
DENO_THIRD_PARTY_PATH: $(APPVEYOR_BUILD_FOLDER)\third_party
CARGO_HOME: $(USERPROFILE)\.cargo
RUSTUP_HOME: $(USERPROFILE)\.rustup
@ -329,3 +330,17 @@ after_test:
if ($out -notcontains "ninja: no work to do.") {
throw "Build should be up-to-date but isnt't."
}
before_deploy:
- ps: |-
Compress-Archive -LiteralPath $env:DENO_BUILD_PATH/deno.exe `
-CompressionLevel Optimal `
-DestinationPath $env:RELEASE_ARTIFACT
deploy:
provider: GitHub
auth_token:
secure: HQIIUEOtep3yRiBacZCtX8hVmgtdNvt6Hx7u9fP4Wj2ZYp+eBFP2OLf67RKVa5VZ
artifact: $env:RELEASE_ARTIFACT
on:
appveyor_repo_tag: true # deploy on tag push only