我想知道,是否有可能构建和部署本机.NET应用程序( framework 4.8 ) 使用Github Actions?
答案 0 :(得分:1)
根据他们的landing page:是的。
GitHub Actions使您可以轻松自动化所有软件工作流程, 现在拥有世界一流的CI / CD。 正确构建,测试和部署代码 来自GitHub。
GitHub Actions支持Node.js,Python,Java,Ruby,PHP,Go,Rust, .NET ,等等。
该链接可能会有所帮助:How to build project targeting Net35 with GitHub Actions
答案 1 :(得分:1)
就像@Guillaume Sasdy的答案一样,似乎有效的YAML
来源:Github Forum
name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: [windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build DotNET
run: |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
.\MSBuild.exe $Env:GITHUB_WORKSPACE\ **SLN or project**