Update dotnet.yml

This commit is contained in:
Alessandro Proto 2023-01-08 01:12:24 +01:00 committed by GitHub
parent 8a8c5e661a
commit 250505a340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,11 +26,21 @@ jobs:
run: dotnet build --no-restore run: dotnet build --no-restore
- name: Test - name: Test
run: dotnet test --no-build --verbosity normal run: dotnet test --no-build --verbosity normal
- name: Publish
run: dotnet publish Capy64/Capy64.csproj -c Release --no-self-contained -a x64 -o publish -p:PublishSingleFile=true - name: Publish for Linux x64
- name: Upload a Build Artifact run: dotnet publish Capy64/Capy64.csproj -c Release --no-self-contained -a x64 --os linux -p:PublishSingleFile=true -o publish/linux-x64
- name: Publish for Windows x64
run: dotnet publish Capy64/Capy64.csproj -c Release --no-self-contained -a x64 --os win -p:PublishSingleFile=true -o publish/win-x64
- name: Upload Linux x64 artifact
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v3.1.2
with: with:
name: Publish name: Linux-x64
path: publish/** path: publish/linux-x64/**
if-no-files-found: error
- name: Upload Windows x64 artifact
uses: actions/upload-artifact@v3.1.2
with:
name: Windows-x64
path: publish/win-x64/**
if-no-files-found: error if-no-files-found: error