appveyor: save artifact to constant name
authorRicardo Constantino <wiiaboo@gmail.com>
Fri, 10 Feb 2017 02:11:01 +0000 (02:11 +0000)
committerRalph Giles <giles@thaumas.net>
Thu, 25 May 2017 04:26:50 +0000 (21:26 -0700)
So it can be used with a permalink to the latest build.

ex: https://ci.appveyor.com/api/projects/rillian/opus-tools/artifacts/opus-tools.zip?job=Configuration%3A%20Release%3B%20Platform%3A%20x64
This is a permalink to the latest successful build of Release x64.

Signed-off-by: Ralph Giles <giles@thaumas.net>
.appveyor.yml

index 2b27b65..ff7ae07 100644 (file)
@@ -11,8 +11,8 @@ install:
 - cd %APPVEYOR_BUILD_FOLDER%
 - git clone -q https://github.com/xiph/opus.git ..\opus
 - git clone -q https://github.com/xiph/ogg.git ..\ogg
-- msbuild "..\opus\win32\VS2015\opus.vcxproj" /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
-- msbuild "..\ogg\win32\VS2015\libogg_static.sln" /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
+- msbuild "..\opus\win32\VS2015\opus.vcxproj" /p:Configuration=%CONFIGURATION%;Platform=%PLATFORM% /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
+- msbuild "..\ogg\win32\VS2015\libogg_static.sln" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM% /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
 
 build:
   project: win32\VS2015\opus-tools.sln
@@ -21,8 +21,8 @@ build:
 
 after_build:
 - cd %APPVEYOR_BUILD_FOLDER%
-- git describe --tags --match "v*" --dirty>_git_tag.tmp
-- set /p version=<_git_tag.tmp
-- set version=%version:~1%
-- 7z a opus-tools-%version%.zip .\win32\VS2015\%PLATFORM%\%CONFIGURATION%\*.exe
-- appveyor PushArtifact opus-tools-%version%.zip
+- 7z a opus-tools.zip .\win32\VS2015\%PLATFORM%\%CONFIGURATION%\*.exe .\COPYING
+
+artifacts:
+  - path: opus-tools.zip
+