Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit c972dbe

Browse files
committed
appveyor: reset location on every script block, it might get changed by previous blocks
1 parent c623b51 commit c972dbe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

appveyor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ test:
7474
- DoNotRunOnAppVeyor
7575
on_success:
7676
- ps: |
77+
Set-Location $env:appveyor_build_folder
7778
if ($package) {
7879
$sourcedir="$($env:appveyor_build_folder)\unity\PackageProject"
7980
Get-ChildItem -Recurse "$($sourcedir)\*.pdb" | foreach { $_.fullname.substring(0, $_.fullname.length - $_.extension.length) } | foreach { Write-Output "Generating $($_).mdb"; & 'lib\pdb2mdb.exe' "$($_).dll" }
8081
}
8182
- if %BUILD_TYPE%==full cd %appveyor_build_folder%\submodules\packaging\unitypackage && node yarn.js start --path %appveyor_build_folder%\unity\PackageProject --out %appveyor_build_folder% --file github-for-unity-%package_version%
8283
- ps: |
84+
Set-Location $env:appveyor_build_folder
8385
if ($package) {
8486
$sourcedir="$($env:appveyor_build_folder)\unity\PackageProject"
8587
$zipfile="$($env:appveyor_build_folder)\github-for-unity-$($env:package_version).zip"
@@ -97,4 +99,6 @@ on_success:
9799
Push-AppveyorArtifact "$($packagefile).md5" -DeploymentName package
98100
}
99101
on_finish:
100-
- ps: Get-ChildItem build\*.log | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
102+
- ps: |
103+
Set-Location $env:appveyor_build_folder
104+
Get-ChildItem build\*.log | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }

0 commit comments

Comments
 (0)