diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-08-22 20:56:40 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2018-08-22 22:34:22 +0200 |
commit | c5bb412933d750c80c93eaa4840eb3bbac33bc2c (patch) | |
tree | 5fa71248159634b35eed8b9f39c39a71325191f4 | |
parent | 0c907715a34745c4db6bb320e3fbc0a163c98526 (diff) |
Make deploying windows binaries from appveyor work
-rw-r--r-- | .appveyor.yml | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 555c0bb65..c23d6b457 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -9,10 +9,10 @@ environment: APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 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 + RELEASE_ARTIFACT: deno_win_x64.zip # Appveyor uses 7zip to pack cache directories. We use these options: # -t7z : Use '7z' format. The default is 'zip' which can't store symlinks. @@ -331,16 +331,21 @@ after_test: throw "Build should be up-to-date but isnt't." } -before_deploy: + # If this build is going to be deployed, build a zip file. - ps: |- - Compress-Archive -LiteralPath $env:DENO_BUILD_PATH/deno.exe ` - -CompressionLevel Optimal ` - -DestinationPath $env:RELEASE_ARTIFACT + if ($env:APPVEYOR_REPO_TAG) { + Compress-Archive -CompressionLevel Optimal -Force ` + -Path "$env:DENO_BUILD_PATH\deno.exe" ` + -DestinationPath "$env:APPVEYOR_BUILD_FOLDER\$env:RELEASE_ARTIFACT" + } + +artifacts: + path: $(RELEASE_ARTIFACT) deploy: provider: GitHub auth_token: secure: HQIIUEOtep3yRiBacZCtX8hVmgtdNvt6Hx7u9fP4Wj2ZYp+eBFP2OLf67RKVa5VZ - artifact: $env:RELEASE_ARTIFACT on: - appveyor_repo_tag: true # deploy on tag push only + APPVEYOR_REPO_NAME: denoland/deno + APPVEYOR_REPO_TAG: true |