From c0a5de6663589eaf76ce6dd6e5cb56881b26ff58 Mon Sep 17 00:00:00 2001 From: Code Hz Date: Sat, 8 Feb 2020 16:39:38 +0800 Subject: [PATCH] add publish --- .github/workflows/dotnetcore.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index c7af562..e94380a 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -4,8 +4,10 @@ on: [push] jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: [win-x64, linux-x64] steps: - uses: actions/checkout@v2 @@ -14,4 +16,6 @@ jobs: with: dotnet-version: 3.1.100 - name: Build with dotnet - run: dotnet build --configuration Release + run: dotnet build -c Release + - name: Publish + run: dotnet publish -c Release -r ${{ matrix.os }} --self-contained