Skip to content

Commit

Permalink
Declare $artifact variable for reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
asbjornu committed Jun 28, 2017
1 parent e48456c commit ba9b424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Expand Up @@ -16,6 +16,7 @@ install:
$buildFolder = $env:APPVEYOR_BUILD_FOLDER
$posixBuildFolder = $buildFolder -Replace '\\', '/'
$env:PATH="C:\$msys\$mingw\bin;C:\$msys\usr\bin;$env:PATH"
$artifact = "schismtracker-$appveyor_build_version-win$bits.zip"
function bash($command, $dieOnError = $true) {
""
Expand Down Expand Up @@ -116,7 +117,6 @@ on_failure:

on_finish:
- ps: |
$artifact = "schismtracker-$appveyor_build_version-win$bits.zip"
Write-Host "$artifact"
if (Test-Path "schismtracker_debug_logs.zip") { appveyor PushArtifact "schismtracker_debug_logs.zip" }
if (Test-Path "schismtracker.exe") { 7z a -tzip "$artifact" "schismtracker.exe" > nul }
Expand All @@ -139,7 +139,7 @@ deploy:
provider: GitHub
auth_token:
secure: 0vYg3iWKoeqKmAggg8G9FqmTZ8/R9DmnZkePvNFAJH1BfAxrd/l3Mni0t4maPW8F
artifact: "schismtracker-$appveyor_build_version-win$bits.zip"
artifact: "$artifact"
draft: false
prerelease: false
on:
Expand Down

0 comments on commit ba9b424

Please sign in to comment.