Skip to content

Commit

Permalink
adapted appveyor.yml for automatic deployment to github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
chcg committed Dec 27, 2016
1 parent 7e0c5a3 commit 5cd8d64
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NPP_Export
Notepad++ Plugin NppExport
Repo with sourcecode of https://sourceforge.net/projects/npp-plugins/files/NppExport/
unofficial repo with sourcecode of https://sourceforge.net/projects/npp-plugins/files/NppExport/


Build Status
Expand Down
46 changes: 31 additions & 15 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ version: 0.2.8.{build}
image: Visual Studio 2015


clone_depth: 1


environment:
matrix:
- PlatformToolset: v140_xp
Expand All @@ -28,27 +25,46 @@ build:
verbosity: minimal

build_script:
- cd c:\projects\npp-exportplugin\vs7project\
- cd "%APPVEYOR_BUILD_FOLDER%"\vs7project\
- msbuild NppExport.vcxproj /p:configuration="%configuration%" /p:platform="%platform%" /p:PlatformToolset="%PlatformToolset%"

after_build:
- cd c:\projects\npp-exportplugin\
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
$NPP_ExportPluginFileName = "NppExport.$env:PLATFORM.$env:CONFIGURATION.$env:PLATFORMTOOLSET.dll"
if ($env:PLATFORM -eq "x64" -and $env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "vs7project\x64\Release\NppExport.dll" -FileName "$NPP_ExportPluginFileName"
if ($env:PLATFORM -eq "x64") {
Push-AppveyorArtifact "vs7project\$env:PLATFORM\$env:CONFIGURATION\NppExport.dll" -FileName NppExport.dll
}
if ($env:PLATFORM -eq "x64" -and $env:CONFIGURATION -eq "Debug") {
Push-AppveyorArtifact "vs7project\x64\Debug\NppExport.dll" -FileName "$NPP_ExportPluginFileName"
if ($env:PLATFORM -eq "Win32" ) {
Push-AppveyorArtifact "vs7project\$env:CONFIGURATION\NppExport.dll" -FileName NppExport.dll
}
if ($env:PLATFORM -eq "Win32" -and $env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "vs7project\Release\NppExport.dll" -FileName "$NPP_ExportPluginFileName"
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v120_xp") {
if($env:PLATFORM -eq "x64"){
$ZipFileName = "NppExport_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
7z a $ZipFileName vs7project\$env:PLATFORM\$env:CONFIGURATION\*.dll
}
if($env:PLATFORM -eq "Win32"){
$ZipFileName = "NppExport_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName vs7project\$env:CONFIGURATION\*.dll
}
}
if ($env:PLATFORM -eq "Win32" -and $env:CONFIGURATION -eq "Debug") {
Push-AppveyorArtifact "vs7project\Debug\NppExport.dll" -FileName "$NPP_ExportPluginFileName"
}
artifacts:
- path: NppExport_*.zip
name: releases

deploy:
provider: GitHub
auth_token:
secure: PhNXrhw03Z0rJZssX/UYyoIofw669wU1GBy/hGq+WJPCXd7mbxDu6Il32Rx0LBH6
artifact: releases
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
PlatformToolset: v120_xp
configuration: Release

0 comments on commit 5cd8d64

Please sign in to comment.