mirror of
https://github.com/zhicheng233/VHDPatchFix.git
synced 2026-09-19 01:17:59 -04:00
42 lines
843 B
YAML
42 lines
843 B
YAML
# This workflow will build and publish a .NET project
|
|
|
|
name: .NET
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
run: dotnet build --no-restore --configuration Release
|
|
|
|
- name: Test
|
|
run: dotnet test --no-build --configuration Release --verbosity normal
|
|
|
|
- name: Publish
|
|
run: dotnet publish --configuration Release --output ./publish
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: VHDPatchFix
|
|
path: ./publish
|
|
if-no-files-found: error
|