From 6c19d21b958d64b5269c3673b0444c3b3a45e46a Mon Sep 17 00:00:00 2001 From: Yehor Dreval Date: Fri, 1 Dec 2023 11:25:05 +0100 Subject: [PATCH] upd zad5 --- .gitea/workflows/ci.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f6da1be..da097a4 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,5 +1,6 @@ name: First CI -on: [push] + +on: jobs: build: @@ -8,9 +9,24 @@ jobs: matrix: rid: ["win-x64", "linux-x64"] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-dotnet@v3 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 with: dotnet-version: "6.0.x" - - run: dotnet restore - - run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true + + - name: Restore dependencies + run: dotnet restore + + - name: Publish artifacts + run: | + dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true + echo "::set-output name=artifact-path::app" + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.rid }}-artifacts + path: ${{ steps.publish.outputs.artifact-path }}