mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-08-19 06:02:11 +00:00
A PowerShell command was added to download the unsigned setup executable from Azure Blob Storage during the after_build step, saving it to the artifacts directory.
49 lines
1.9 KiB
YAML
49 lines
1.9 KiB
YAML
version: 0.2.7.build{build}
|
|
|
|
image: Visual Studio 2019
|
|
|
|
clone_folder: C:\projects\welsonjs
|
|
|
|
environment:
|
|
ORGANIZATION_ID: 8ee5ec82-36dc-4619-ac33-5bc1117428fe
|
|
PROJECT_SLUG: welsonjs
|
|
ARTIFACT_CONFIGURATION_SLUG: initial
|
|
matrix:
|
|
- CONFIGURATION: Debug
|
|
SIGNING_POLICY_SLUG: test-signing
|
|
- CONFIGURATION: Release
|
|
SIGNING_POLICY_SLUG: release-signing
|
|
|
|
before_build:
|
|
- nuget restore WelsonJS.Toolkit
|
|
|
|
build_script:
|
|
- msbuild "C:\projects\welsonjs\WelsonJS.Toolkit\WelsonJS.Toolkit.sln" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration=%CONFIGURATION% /p:Platform="x86"
|
|
|
|
after_build:
|
|
- cmd: mkdir artifacts
|
|
#- cmd: xcopy /s /y WelsonJS.Toolkit\WelsonJS.Toolkit\bin\x86\%CONFIGURATION%\* artifacts\
|
|
- cmd: xcopy /s /y WelsonJS.Toolkit\WelsonJS.Service\bin\x86\%CONFIGURATION%\* artifacts\
|
|
- cmd: xcopy /s /y WelsonJS.Toolkit\WelsonJS.Launcher\bin\x86\%CONFIGURATION%\* artifacts\
|
|
- cmd: nuget pack WelsonJS.Toolkit\WelsonJS.Toolkit\ -properties Configuration=%CONFIGURATION% -properties Platform=x86 -OutputDirectory artifacts\
|
|
- ps: Start-BitsTransfer -Source "https://catswords.blob.core.windows.net/welsonjs/welsonjs_setup_unsigned.exe" -Destination "artifacts\welsonjs_setup.exe"
|
|
- cmd: 7z a artifacts.zip artifacts\*
|
|
|
|
artifacts:
|
|
- path: artifacts.zip
|
|
name: WelsonJS.Toolkit
|
|
|
|
deploy:
|
|
- provider: Webhook
|
|
url: https://app.signpath.io/API/v1/%ORGANIZATION_ID%/Integrations/AppVeyor?ProjectSlug=%PROJECT_SLUG%&SigningPolicySlug=%SIGNING_POLICY_SLUG%&ArtifactConfigurationSlug=%ARTIFACT_CONFIGURATION_SLUG%
|
|
authorization:
|
|
secure: nABfe+lksIRfS7lVnkq3EdIYNH8KOka+5ZFTUJqUW2nckBubhrlAXarbCPJHLp9FWWf3zxAWhNwT0It+qyqPRQ==
|
|
|
|
notifications:
|
|
- provider: Email
|
|
to:
|
|
- gnh1201@catswords.re.kr
|
|
subject: "Build {{status}}: {{projectName}} {{buildVersion}}"
|
|
on_build_success: false
|
|
on_build_failure: true
|