0
在我們的項目資源庫中,我們有一個爲我們的.NET Web應用程序安裝的appveyor.yml
(其中包含程序集修補,nuget恢復等)。如果一切順利,我們的應用程序將部署到分段和生產環境。 .NET解決方案位於repo/src/
。是否可以有多個appveyor.yml配置?
在同一倉庫我們也創造了我們在repo/frontend/
HTML模板。我們希望將這些HTML文件部署到FTP主機上。這個Frontend configuration
應該在其他配置之前運行,但在沒有.NET解決方案創建時在assembly_info
和nuget restore
上邏輯失敗。
是否有可能建立一個appveyor配置可以部署我們的前端配置FTP和可選繼續進行調試和發佈配置時.NET解決方案可用?
我們的配置文件,這一步:
version: 1.0.0.{build} branches: only: - develop - /release\/\d+.\d+.\d+/ - master image: Visual Studio 2015 matrix: fast_finish: true # set this flag to immediately finish build once one of the jobs fails. allow_failures: - platform: x86 configuration: Debug - platform: x86 configuration: Release assembly_info: patch: true file: AssemblyInfo.* assembly_version: "{version}" assembly_file_version: "{version}" assembly_informational_version: "{version}" nuget: account_feed: true configuration: - Frontend - Debug - Release build: publish_wap: true verbosity: minimal before_build: - cmd: nuget restore src\ProjectName.Web.sln test: off artifacts: - path: frontend/dist/ name: frontenddist deploy: - provider: FTP host: 0.0.0.0 protocol: ftp username: username password: secure: password folder: frontend-test application: frontenddist beta: true on: branch: develop configuration: frontend - provider: Environment name: ProjectName.Development remove_files: true on: branch: develop configuration: debug - provider: Environment name: ProjectName.Production remove_files: false on: branch: master configuration: release notifications: - provider: Slack incoming_webhook: # removed for stackoverflow example on_build_success: true on_build_failure: true on_build_status_changed: false