summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-08-22 13:42:04 -0400
committerGitHub <noreply@github.com>2018-08-22 13:42:04 -0400
commit355da89eaea09f5979824808f1247a9cc4357433 (patch)
tree6449a63b8f419828f8a8ca27986feaf3571be0f2
parentca4ace6b1f054593029df4958538708c2fbbabc2 (diff)
Add appveyor binary deploy. (#556)
Also switch to release mode.
-rw-r--r--.appveyor.yml19
1 files changed, 17 insertions, 2 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 1350e44fa..555c0bb65 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -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