Skip to content

Commit

Permalink
>- syntax contatenates all commands together; try separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 committed Jul 21, 2019
1 parent 34ce4da commit af90118
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ on_failure:
after_build:
- ps: .\appveyor.set-build-info.ps1
- cmd: 7z a Mudlet-%VERSION%%MUDLET_VERSION_BUILD%-windows.zip "%APPVEYOR_BUILD_FOLDER%\src\release"
- ps: >-
Set-Variable -Name "uri" -Value "https://make.mudlet.org/snapshots/Mudlet-$env:VERSION$env:MUDLET_VERSION_BUILD-windows.zip"
Set-Variable -Name "inFile" -Value "Mudlet-$env:VERSION$env:MUDLET_VERSION_BUILD-windows.zip"
Set-Variable -Name "outFile" -Value "upload-result.txt"
Invoke-RestMethod -Uri $uri -Method PUT -InFile $inFile -OutFile $outFile
Get-Content -Path $outFile
- ps: .\appveyor.upload.ps1
# - ps: $env:DEPLOY_URL = & curl.exe https://make.mudlet.org/snapshots/Mudlet-$env:VERSION$env:MUDLET_VERSION_BUILD-windows.zip --upload-file Mudlet-$env:VERSION$env:MUDLET_VERSION_BUILD-windows.zip 2>&1
- ps: echo "$env:DEPLOY_URL - uploaded url"

Expand Down
5 changes: 5 additions & 0 deletions CI/appveyor.upload.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Set-Variable -Name "uri" -Value "https://make.mudlet.org/snapshots/Mudlet-$env:VERSION$env:MUDLET_VERSION_BUILD-windows.zip"
Set-Variable -Name "inFile" -Value "Mudlet-$env:VERSION$env:MUDLET_VERSION_BUILD-windows.zip"
Set-Variable -Name "outFile" -Value "upload-result.txt"
Invoke-RestMethod -Uri $uri -Method PUT -InFile $inFile -OutFile $outFile
Get-Content -Path $outFile

0 comments on commit af90118

Please sign in to comment.