diff --git a/appveyor.yml b/appveyor.yml index f7fa128..c5ab823 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -127,7 +127,6 @@ after_build: else { echo "Deploy Windows..." .\scripts\choco-update.ps1 -version $env:PACKAGE_VERSION - npm run publish:npm } } - sh: | @@ -135,6 +134,7 @@ after_build: then snapcraft logout fi +- cmd: if ["%PROD_DEPLOY%"] equ ["true"] npm run publish:npm on_finish: - ps: | diff --git a/scripts/snap-build.ps1 b/scripts/snap-build.ps1 index 9dcacb3..dfae766 100644 --- a/scripts/snap-build.ps1 +++ b/scripts/snap-build.ps1 @@ -29,3 +29,4 @@ Copy-Item -Path $snapDir -Destination $distSnapDir –Recurse (Get-Content $snapDistYaml).replace('__version__', $version) | Set-Content $snapDistYaml cd $distSnapDir snapcraft +cd $rootDir