From ddb452893d601f5ea9dd7edb422907d2a740d9a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Kov=C3=A1cs?= Date: Mon, 19 Dec 2022 17:04:10 +0100 Subject: [PATCH] Dotnet publish, publish artifact --- .github/workflows/github-actions-demo.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index f263235..b4f0a6f 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -8,10 +8,12 @@ jobs: strategy: matrix: target: - - triple: x86_64-pc-windows-gnu + - runtime: x86_64-pc-windows-gnu runner: windows-latest - - triple: x86_64-unknown-linux-gnu + name: windows + - runtime: x86_64-unknown-linux-gnu runner: ubuntu-latest + name: linux steps: - uses: actions/checkout@v3 - name: Setup dotnet @@ -21,4 +23,8 @@ jobs: - name: Install dependencies run: dotnet restore src/Alma - name: Build - run: dotnet build src/Alma + run: dotnet publish -r ${{ matrix.target.runtime }} -o /app/ src/Alma + - uses: actions/upload-artifact@v3 + with: + name: alma-${{ matrix.target.name }} + path: /app/