mirror of
https://github.com/zhicheng233/VHDPatchFix.git
synced 2026-09-19 01:17:59 -04:00
Update dotnet.yml
This commit is contained in:
@@ -10,7 +10,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -25,17 +25,17 @@ jobs:
|
|||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --no-restore --configuration Release
|
run: dotnet build src/VHDPatchFix/VHDPatchFix.csproj --no-restore --configuration Release
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet test --no-build --configuration Release --verbosity normal
|
run: dotnet test --no-build --configuration Release --verbosity normal
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: dotnet publish --configuration Release --output ./publish
|
run: dotnet publish src/VHDPatchFix/VHDPatchFix.csproj --configuration Release --runtime win-x64 --self-contained true --property PublishSingleFile=true --output ./publish
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: VHDPatchFix
|
name: VHDPatchFix-win-x64
|
||||||
path: ./publish
|
path: ./publish
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|||||||
Reference in New Issue
Block a user