asp.net-mvc - 谁能帮我合并我的工作流文件?:)
问题描述
我目前正在使用三个 yml 文件来触发我的 GitHub 存储库中的自动化。存储库中的解决方案是 .net 解决方案。
一个是检查调试以确保解决方案构建前:
name: Solution-Debug-Check
on:
pull_request:
branches: [ master,staging,development ]
env:
SOLUTION_NAME: ./src/main/Solution.sln
BUILD_CONFIGURATION: Debug
jobs:
build:
runs-on: Windows
steps:
- uses: actions/checkout@v2
- name: Restore
run: nuget restore ${env:SOLUTION_NAME}
- name: Build
run: msbuild ${env:SOLUTION_NAME} -p:Configuration=${env:BUILD_CONFIGURATION}
第二个在 Release ex 中构建解决方案后创建 Web 工件:
name: Solution-CI-Release
on:
push:
branches: [master, staging]
env:
SOLUTION_NAME: ./src/main/Solution.sln
BUILD_CONFIGURATION: Release
OUTPUT_FOLDER: ../../../output
WEB_CONFIG: Web.config
jobs:
publish:
runs-on: Windows
steps:
- uses: actions/checkout@v2
- name: Restore NuGet packages
run: nuget restore ${env:SOLUTION_NAME}
- name: Build Solution
run: msbuild ${env:SOLUTION_NAME} -p:Configuration=${env:BUILD_CONFIGURATION}
- name: Save Web Artifacts
uses: actions/upload-artifact@v2
with:
name: core-components
path: ./core-components.exe
retention-days: 7
- name: Save Installers
uses: actions/upload-artifact@v2
with:
name: installers
path: ./src/main/build/*.msi
retention-days: 7
第三个在 Debug ex 中构建解决方案后创建 Web 工件:
name: Solution-CI-Debug
on:
push:
branches: [development]
env:
SOLUTION_NAME: ./src/main/Solution.sln
BUILD_CONFIGURATION: Debug
OUTPUT_FOLDER: ../../../output
WEB_CONFIG: Web.config
jobs:
publish:
runs-on: Windows
steps:
- uses: actions/checkout@v2
- name: Restore NuGet packages
run: nuget restore ${env:SOLUTION_NAME}
- name: Build Solution
run: msbuild ${env:SOLUTION_NAME} -p:Configuration=${env:BUILD_CONFIGURATION}
- name: Save Web Artifacts
uses: actions/upload-artifact@v2
with:
name: core-components
path: ./core-components.exe
retention-days: 7
- name: Save Installers
uses: actions/upload-artifact@v2
with:
name: installers
path: ./src/main/build/*.msi
retention-days: 7
如何合并这些文件?
解决方案
推荐阅读
- c# - 如何在 C# 中使用 HTTPContext 获取网址
- javascript - 使用 onclick="location... 代替 href。为什么我应该避免使用它和替代选项
- sql-server - 从 Microsoft SQL Server Management Studio 下载 SQL 数据库?
- django - 在 django 中自动填充数据库中的字段
- android - 用于注释模型的 Moshi 适配器
- node.js - 删除数据库和创建同名数据库问题
- java - 从 IntelliJ 中的 .iml 生成 pom.xml
- amazon-web-services - stopDBCluster (Aurora) 不是函数 aws-sdk javascript lambda
- javascript - 从使用流的包中导出流类型
- javascript - 我如何为这段代码使用for循环,所以类元素会改变?